@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,300;0,500;0,600;0,700;0,900;1,500;1,600;1,700&display=swap");

:root {
  --primary-color: #05306a;
  --secondary-color: #2a28b5;
  --gray: #222;
  --background-color: #fefefe;
}

/* ===== BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  font-family: "Montserrat", sans-serif;
  font-size: 10px;
  background: #fdfdfd;
  color: var(--gray);
}

body {
  margin: 0 auto;
  position: relative;
  max-width: 1440px;
  z-index: -30;
}

.wrapper {
  position: relative;
  width: 100%;
  height: 100vh;
  display: grid;
  grid-template-rows: 60px auto 100px;
  grid-template-columns: 30px 1fr 60px;
}

.wrapper .rk-logo {
  position: relative;
  grid-row: 1 / 3;
  grid-column: 2 / 4;
  justify-self: end;
  z-index: 0;
}

.wrapper .rk-logo img {
  max-width: 1008px;
  width: 70vw;
  height: auto;
  opacity: 0.6;
}

.header {
  position: fixed;
  width: 100%;
  max-width: 1440px;
  background: rgba(254, 254, 254, 0.6);
  grid-row: 1 / 2;
  grid-column: 1 / -1;
  display: grid;
  grid-template-rows: 60px;
  grid-template-columns: 30px 1fr 60px;
  z-index: 2;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
}
p {
  margin: 20px 0 10px;
  font-size: 1.2rem;
}

.title h1 {
  font-size: 5rem;
  color: var(--primary-color);
  line-height: 6rem;
  letter-spacing: 0.15rem;
}

/* ===== BUTTON ===== */
.btn {
  cursor: pointer;
  display: inline-block;
  background: var(--primary-color);
  color: #fff;
  text-decoration: none;
  padding: 10px 30px;
  border: 0;
}
.btn:hover {
  transform: scale(0.95);
}

/* ===== LOGO ===== */
.logo {
  margin: 0 0 0 30px;
  position: absolute;
  grid-column: 1 / 5;
  grid-row: 1 / 2;
  justify-self: start;
  align-self: end;
  font-size: 3rem;
  font-weight: 300;
  letter-spacing: 0.15rem;
  z-index: 20;
  text-decoration: none;
}
.logo a {
  text-decoration: none;
  color: var(--gray);
  cursor: pointer;
  text-transform: uppercase;
}

.logo:hover {
  transform: scale(0.98);
  color: var(--primary-color);
}

/* ===== TOGGLE ===== */
.toggle {
  position: absolute;
  grid-column: -2 / -1;
  right: 0;
  width: 60px;
  height: 60px;
  background: var(--primary-color) url(../images/menu.png);
  background-size: 30px;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 20;
  cursor: pointer;
}
.toggle.active {
  background: var(--primary-color) url(../images/close.png);
  background-size: 25px;
  background-position: center;
  background-repeat: no-repeat;
}

/* ===== NAVIGATION ===== */
.navigation {
  position: fixed;
  top: 0;
  left: 100%;
  width: 100%;
  height: 100%;
  background-color: #fff;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.navigation.active {
  left: 0;
}
.navigation ul {
  position: relative;
}
.navigation ul li {
  position: relative;
  list-style: none;
  text-align: center;
}
.navigation ul li a {
  background: #fefefe;
  font-size: 4rem;
  line-height: 8rem;
  color: var(--gray);
  text-decoration: none;
  font-weight: 200;
  padding: 0 50px;
}
.navigation ul li a:hover {
  font-weight: 300;
  color: #2a28b5;
  margin: 0 50px;
}
.active-page {
  font-size: 3.5rem;
  font-weight: 300;
  color: rgba(3, 3, 3, 1);
}

/* ===== FOOTER ===== */
.footer-section {
  display: grid;
  grid-row: 3 / 4;
  grid-column: 1 / -1;
  color: var(--primary-color);
  width: 100%;
  padding: 5px 55px 5px 5px;
  text-align: center;
}
.footer-section p {
  align-self: center;
  font-size: 1.2rem;
  line-height: 1.4rem;
}

/* ===== HOME PAGE ===== */

.home {
  position: relative;
  grid-row: 2 / -1;
  grid-column: 2 / 3;
  display: grid;
  justify-content: center;
  align-content: center;
}

.home-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 50%;
  z-index: 1;
}

.home-content h1,
.home-content p,
.home-content a {
  margin: 30px 0;
}
.home-content h1 {
  font-size: 4rem;
  color: var(--primary-color);
}
.home-content p {
  font-size: 1.5rem;
}
.home-content .btn {
  text-align: center;
  width: 25%;
  margin: 0 20px 0 0;
}
.home-content .cta {
  background: #fff;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}
.home-img {
  position: relative;
  grid-row: 1 / -1;
  grid-column: 2 / -1;
}

/* ===== PORTFOLIO PAGE ===== */
.work {
  position: relative;
  grid-row: 2 / -2;
  grid-column: 2 / 3;
  display: grid;
  justify-content: center;
  align-content: center;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: 130px repeat(2, 1fr) 150px;
}

.work .title {
  display: grid;
  grid-row: 1 / 2;
  grid-column: 1 / -1;
  justify-self: start;
  align-self: end;
  margin-bottom: 10px;
}

.portfolio {
  grid-column: 1 / -1;
  grid-row: 2 / 5;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: center;
  margin: 60px 0 40px;
}

.portfolio .item {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 15px;
  text-align: center;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.portfolio .item img {
  width: 100%;
  height: 100%;
}

.portfolio .item .action {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 48, 106, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: 0.5s;
}

.portfolio .item .action h2 {
  font-size: 2em;
  color: #fafafa;
  margin: 0;
}

.portfolio .item .action p {
  color: #fafafa;
}

.portfolio .item:hover .action {
  opacity: 0.95;
}

.portfolio .item .action .launch {
  margin-top: 20px;
}

.portfolio .item .action a {
  cursor: pointer;
  display: inline-block;
  color: #fff;
  text-decoration: none;
  outline: 1px solid #fff;
  padding: 5px 15px;
}

.work .aside {
  text-align: center;
  grid-column: 1 / -1;
  grid-row: 5 / 6;
  padding: 20px 60px;
  margin-bottom: 10px;
}
.work .aside p {
  font-size: 1.5rem;
}
.work .aside .btn {
  margin: 5px 0 40px;
}

/* ===== ABOUT ME PAGE ===== */
.about {
  position: relative;
  grid-row: 2 / -1;
  grid-column: 2 /-2;
  max-width: 1350px;
  display: grid;
  grid-template-rows: 180px repeat(2, minmax(100px, 1fr) 60px);
  grid-template-columns: repeat(5, 1fr);
}
.about .title {
  display: grid;
  grid-row: 1 / 2;
  grid-column: 1 / -2;
  justify-self: start;
  align-self: center;
}
.about-img {
  margin: 0 auto;
  width: 100%;
  display: grid;
  position: relative;
  grid-row: 2 / 5;
  grid-column: 3 / -2;
  align-self: start;
  margin-bottom: 10px;
}

.about-img img {
  width: 100%;
  /* height: 100%; */
}

.about-content {
  position: relative;
  width: 90%;
  grid-row: 2 / 5;
  grid-column: 1 / 3;
  align-self: start;
  padding: 20px 0 0;
  /* background: #dde2ea; */
}
.about-content p {
  font-size: 1.4rem;
  line-height: 2.6rem;
  font-weight: 300;
  margin: 0;
}
.about-links {
  margin-top: 30px;
  width: 100%;
  position: relative;
  grid-row: 4 / 5;
  grid-column: 2 / 5;
  display: flex;
  flex-direction: row;
}
.about-link-item {
  width: 50px;
  margin-right: 60px;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-content: start;
  cursor: pointer;
  border: 0;
  text-decoration: none;
  font-size: 0.85rem;
  text-align: center;
}
.about-link-item img {
  height: 60px;
  width: 60px;
}
.profile-link {
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  color: var(--gray);
}
.about-link-item img:hover {
  transform: scale(0.9);
}

/* ===== CONTACT PAGE ===== */
.contact-section {
  grid-column: 2 / -2;
  grid-row: 1 / -1;
  position: relative;
  margin: 60px 0;
  display: grid;
  grid-template-rows: 150px 20px auto 40px;
  grid-template-columns: repeat(6, 1fr) 60px;
}
.contact-section .title {
  grid-row: 1 / 2;
  grid-column: 1 / 5;
  align-self: end;
}
.contact-section .title h1,
.contact-section .title p {
  margin: 0;
  padding: 0;
}

/*===Hold for PHP Form====
.contact {
  background: #dde2ea;
  grid-row: 2 / -2;
  grid-column: 1 / -1;
  width: 100%;
  margin: 40px 0 0;
  display: flex;
  justify-content: space-evenly;
}
 .contact-form {
  position: relative;
  background: #dde2ea;
  width: calc(100%-100px);
  padding: 50px 40px 20px;
}
.contact-form form {
  width: 100%;
}
.contact-form .row {
  width: 100%;
  display: flex;
}
.contact-form .input50 {
  width: 50%;
  margin: 0 10px;
}
.contact-form .input100 {
  width: 100%;
  margin: 0 10px;
}
.contact-form .row input,
.contact-form .row textarea {
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.2);
  color: var(--gray);
  background: #fefefe;
  width: 100%;
  padding: 10px;
  outline: none;
  font-family: "Montserrat";
  font-size: 1.4rem;
  font-weight: 300;
  margin: 10px 0;
  resize: none;
}
.contact-form .row textarea {
  height: 150px;
}
.contact-form .row input[type="submit"] {
  background: var(--primary-color);
  color: #fff;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 300;
  border: 0;
  cursor: pointer;
} */
/*===Hold for PHP Form
 .contact-info {
  width: calc(100%-400px);
  background: #dde2ea;
  padding: 55px 40px 20px; 
}*/

.contact-info {
  grid-column: 1 / -1;
  grid-row: 3 / 4;
  width: 100%;
  background: #dde2ea;
  padding: 55px 40px 20px;
}

.contact-info .info-box {
  display: flex;
  align-items: flex-start;
  margin-bottom: 40px;
}
.contact-info .info-box .contact-icon {
  width: 20px;
  margin-right: 20px;
}
.contact-info .info-box .details h4 {
  font-size: 1.6rem;
  color: var(--primary-color);
}
.contact-info .info-box .details p,
.contact-info .info-box .details a {
  font-size: 1.6rem;
  color: var(--gray);
  text-decoration: none;
}

.footer-details p {
  align-self: center;
  font-size: 1.2rem;
  line-height: 1.4rem;
}

/* ===== MEDIA QUERIES ====== */

@media only screen and (max-width: 1250px) {
  /*--1250 Portfolio--*/
  .work .title,
  .portfolio {
    grid-column: 1 / -1;
  }

  .portfolio .item {
    margin: 15px;
    width: 250px;
    height: auto;
  }
}

@media only screen and (max-width: 1024px) {
  /*--1024 General--*/
  body {
    max-width: 980px;
  }
  .header {
    max-width: 980px;
  }
  .title h1 {
    font-size: 4rem;
    line-height: 6rem;
  }
  .wrapper .rk-logo {
    position: relative;
    grid-row: 2 / -1;
    grid-column: 1 / 4;
    justify-self: end;
    z-index: -1;
  }
  .wrapper .rk-logo img {
    max-width: 1008px;
    width: 100vw;
    height: auto;
    opacity: 0.6;
  }

  /*--1024 Home--*/
  .home {
    grid-row: 2 / 3;
    margin: 10vh 0;
    align-content: end;
  }

  .home-content {
    width: 70%;
  }

  .home-content h1 {
    font-size: 3rem;
  }

  .home-content .btn {
    width: 30%;
    margin: 0 30px 0 0;
  }

  /*--1024 Contact--*/
  .contact-section {
    grid-row: 2 / -1;
    grid-column: 2 / -2;
    margin-top: 0;
    padding: 0;
    height: 100%;
    display: grid;
    grid-template-rows: 200px repeat(10, 1fr);
    grid-template-columns: repeat(6, 1fr);
  }
  .contact-section .title {
    grid-row: 1 / 2;
    grid-column: 1 / 8;
    margin-left: 0;
    margin-top: 40px;
  }
  .contact {
    flex-direction: column;
  }
  .contact-form {
    display: grid;
    grid-row: 2 / 8;
    width: 100%;
    height: 100%;
    padding: 30px 30px 20px;
  }
  .contact-form .row {
    flex-direction: column;
  }
  .contact-form .input50,
  .contact-form .input100 {
    width: 100%;
    margin: 0;
  }
  .contact-info {
    grid-row: 2 / 3;
    width: 100%;
    margin-top: 20px;
    padding: 30px 10px 20px;
  }
}
@media only screen and (max-width: 860px) {
  /*--860 Portfolio--*/
  .work .title,
  .portfolio {
    grid-column: 1 / -1;
  }

  /*--860 About--*/
  .about {
    grid-row: 2 / 3;
    grid-column: 2 / 3;
    grid-template-rows: 180px 1fr 3fr;
    grid-template-columns: 1fr;
  }
  .about-img {
    grid-row: 2 / 3;
    grid-column: 1 / 2;
    object-fit: cover;
    justify-content: center;
  }
  .about-img img {
    width: 100%;
    margin: 5px auto;
  }
  .about-content {
    grid-row: 3 / 5;
    grid-column: 2 / -2;
    padding: 0 30px;
    align-items: start;
  }
}

@media only screen and (max-width: 680px) {
  /*--680 General--*/
  .title h1 {
    font-size: 2.8rem;
    line-height: 6rem;
  }
  .wrapper {
    grid-template-rows: 60px auto 60px;
  }
  .logo {
    font-size: 1.6rem;
  }

  /*--680 footer--*/
  .footer-section {
    padding: 0;
  }

  /*--680 Home--*/
  .home {
    grid-row: 2 / 3;
    margin: 0;
    align-content: end;
  }
  .home-content {
    width: 100%;
    justify-self: end;
    align-self: end;
  }

  .home-content p {
    display: none;
  }
  .home-content h1,
  .home-content a {
    margin: 3vh 0;
  }
  .home-content h1 {
    font-size: 2.5rem;
  }
  .home-content .btn {
    width: 35%;
    margin: 20px 10px 30px;
  }

  /*--680 Work--*/

  .work {
    grid-row: 2 / -2;
    grid-column: 1 / -1;
    grid-template-rows: 80px repeat(5, auto);
    margin: 0 30px 10px;
  }

  .portfolio-title h2 {
    font-size: 2rem;
  }
  .portfolio .item .action h2 {
    font-size: 1.25rem;
    color: #fafafa;
    margin: 0 0 10px;
  }
  .portfolio .item .action p {
    font-size: 0.75rem;
    color: #fafafa;
    margin: 0;
  }
  .portfolio .item {
    width: 125px;
    height: auto;
    margin: 0 10px 10px;
  }
  .portfolio .item img {
    flex: 1 1 auto;
  }
  .work .aside {
    margin: 0 0 5px;
  }

  /*--680 Contact Page--*/
  .contact-section {
    display: grid;
    grid-row: 2 / -2;
    grid-column: 1 / -1;
    margin: 0 30px;
    grid-template-rows: 150px repeat(10, 1fr);
    grid-template-columns: repeat(6, 1fr);
  }
}

@media only screen and (max-width: 360px) {
  /*--360 General --*/
  .title h1 {
    font-size: 2rem;
    color: var(--primary-color);
    line-height: 4rem;
  }
  .wrapper {
    grid-template-rows: 60px auto 50px;
  }

  /*--360 Home--*/
  .home {
    grid-row: 2 / 3;
    grid-column: 2 / 4;
    margin: 0;
    align-content: end;
  }
  .home-content {
    width: 100%;
    justify-self: end;
    align-self: end;
  }
  .home-content p {
    display: none;
  }
  .home-content h1,
  .home-content a {
    margin: 3vh 0;
  }
  .home-content h1 {
    font-size: 2.5rem;
  }
  .home-content .btn {
    width: 40%;
    margin: 20px 10px 30px;
  }

  /*--360 Work--*/
  .portfolio-title h2,
  .case-title h2 {
    font-size: 2rem;
  }
}

@media only screen and (max-height: 420px) {
  .title h1 {
    font-size: 2.5rem;
  }
  .home {
    margin: 20vh 0;
    align-content: start;
  }
  .home-content p {
    display: none;
  }
  .work {
    grid-template-rows: 80px repeat(5, auto);
  }

  .contact-section {
    grid-template-rows: 140px repeat(10, 1fr);
  }

  .navigation ul li a {
    font-size: 2.5rem;
    line-height: 6rem;
  }

  .active-page {
    font-size: 2.5rem;
    font-weight: 300;
    color: rgba(3, 3, 3, 1);
  }
}
