@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Roboto+Mono:wght@300;500&family=Poppins:wght@600&display=swap");

/* variables */
:root {
  --primary-color: #6e491b;
  --secondary-black: #081a17;
  --secondary-gray: #464a4b;
  --body-bg: #faeceb;
}

/* global styles */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
html {
  font-family: "Roboto Mono";
  font-size: 10px;
  scroll-behavior: smooth;
}
body {
  background-color: var(--body-bg);
}
img {
  width: 100%;
  height: 100%;
}
a {
  color: black;
  text-decoration: none;
}

section {
  display: flex;
  align-items: center;
  justify-content: center;
}
.container {
  width: 90%;
  margin: 0 auto;
  max-width: 1000px;
}
p {
  font-size: 1.6rem;
  color: var(--secondary-black);
}
.section-heading {
  font-size: clamp(2rem, 10vw, 8rem);
  text-transform: uppercase;
  font-family: "Montserrat";
  letter-spacing: 0.2rem;
  text-align: center;
  position: relative;
  margin-bottom: 10rem;
}
.section-heading::before {
  content: attr(data-outline);
  position: absolute;
  left: 2%;
  top: -20%;
  width: 100%;

  text-align: center;
  text-transform: uppercase;
  font-family: "Montserrat";
  letter-spacing: 0.2rem;

  color: transparent;
  -webkit-text-stroke: 1.5px #5a24ed2f;
  z-index: -1;
}
.buttons {
  margin-top: 3rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2rem;
}
.primary-btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  font-size: 1.8rem;
  padding: 0.6em 1.6em;
  border-radius: 50px;
}
.buttons .primary-btn.outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}
.buttons svg {
  width: 50px;
  color: var(--primary-color);
}

/* Navigation Section */
.navbar {
  position: fixed;
  justify-content: center;
  flex-direction: row;
  flex-wrap: wrap;
  height: 70px;
  width: 100%;
  display: flex;
  align-items: center;
  background-color: #d4d7de;
  z-index: 3;
}

.nav {
  display: flex;
  justify-content: right;
  list-style: none;
  margin-right: 10%;
}

.logo {
  flex: 1 1 auto;
  margin-left: 10%;
  letter-spacing: 3px;
  font-weight: bold;
  font-size: 35px;
  text-transform: lowercase;
}

.navbar .home-style:hover {
  color: tomato;
  transition: 0.3s;
  text-decoration-line: underline;
  text-decoration-thickness: 3px;
}

a {
  margin: 15px;
  color: #000;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 15px;
}

a.hover {
  color: #000;
}

.burger {
  display: none;
}

.burger div {
  width: 25px;
  height: 3px;
  background-color: black;
  margin: 5px;
  margin-right: 5rem;
  transition: all 0.3s ease;
}

@media screen and (max-width: 1043px) {
  .nav {
    position: absolute;
    right: 0px;
    height: 92vh;
    top: 8vh;
    background-color: #d4d7de;
    margin-right: 0px;
    display: flex;
    flex-direction: column;
    width: 50%;
    align-items: center;
    justify-content: space-evenly;
    transform: translateX(100%);
    transition: transform 0.3s ease-in;
  }

  .nav a.home-style {
    opacity: 0;
  }
  a.logo {
    display: flex;
    justify-content: center;
  }
  .burger {
    display: block;
    cursor: pointer;
  }
  .to-top.active {
    display: none;
  }
}

@media screen and (max-width: 450px) {
  .logo {
    letter-spacing: 1px;
    font-weight: bold;
    font-size: 28px;
    text-transform: lowercase;
  }
  .to-top.active {
    display: none;
  }
}

.nav-active {
  transform: translateX(0%);
}

@keyframes navFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.toggle .line1 {
  transform: rotate(-45deg) translate(-5px, 6px);
}
.toggle .line2 {
  opacity: 0;
}
.toggle .line3 {
  transform: rotate(45deg) translate(-5px, -6px);
}

.to-top {
  background-color: #6e491b;
  color: white;
  position: fixed;
  bottom: 16px;
  right: 32px;
  width: 50px;
  height: 50px;
  border-radius: 20%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s ease-in;
}

.to-top.active {
  bottom: 32px;
  pointer-events: auto;
  opacity: 1;
}
/* Hero section Styles */
#hero {
  height: 100vh;
  width: 100%;
  padding-top: 10rem;
}
#hero .container {
  display: flex;
  align-items: center;
  justify-content: center;
}
#hero .container .left {
  flex: 6;
  /* padding-right: 3rem; */
}
#hero .container .right {
  flex: 8;
}

#hero .left .subheading {
  font-size: 1.8rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--primary-color);
  animation: fade 0.3s ease-in forwards;
  animation-delay: 1.1s;
  opacity: 0;
}
#hero .left .heading {
  font-size: 6rem;
  font-family: "Montserrat";
  font-weight: 900;
  /* max-width: 400px; */
  overflow: hidden;
}
#hero .left .heading .wrapper {
  /* position: relative; */
  display: inline-block;
  overflow: hidden;
  /* border: 1px solid red; */
}
#hero .left .heading .wrapper span {
  position: relative;
  bottom: -70px;
  animation: reveal 1s ease-in-out forwards;
}
@keyframes reveal {
  0% {
    bottom: -70px;
  }
  100% {
    bottom: 0px;
  }
}
@keyframes fade {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
#hero .left .desc {
  margin-top: 2.5rem;
  max-width: 400px;
  animation: fade 0.3s ease-in forwards;
  animation-delay: 1.1s;
  opacity: 0;
}
#hero .left .buttons {
  animation: fade 0.3s ease-in forwards;
  animation-delay: 1.1s;
  opacity: 0;
}

#hero .right {
  text-align: right;
}
#hero .right img {
  width: 100%;
  max-width: 450px;
  height: 600px;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 12px;
}

@media only screen and (max-width: 768px) {
  html {
    font-size: 9px;
  }
  #hero .container {
    flex-direction: column-reverse;
  }
  #hero .container .right {
    text-align: center;
    flex: 1;
    margin-bottom: 2rem;
  }
  #hero .container .left {
    text-align: center;
    padding-right: 0;
    flex: 1;
    height: fit-content;
  }
  #hero .left .buttons {
    justify-content: center;
  }
  #hero .left .heading {
    font-size: 4rem;
    margin: 0 auto;
  }
  #hero .container .left .desc {
    margin: 0 auto;
    margin-top: 2rem;
  }
  #hero .right img {
    width: 100%;
    height: 400px;
  }
}
@media only screen and (max-width: 950px) {
  #hero .container .right {
    flex: 6;
  }
}

/* About section  */
#about,
#about-scroll {
  padding: 5rem 0;
}
#about .wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}
#about .left {
  padding: 2rem;
  text-align: center;
}
#about .left .card {
  box-shadow: 0px 0px 20px #4705fc33;
  padding: 3rem;
  border-radius: 12px;
  min-height: 100px;
}
#about .left .card .img {
  width: 70px;
  height: 70px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 2rem;
}
#about .left .card .img img {
  object-fit: cover;
}
#about .left .card .card-desc {
  color: var(--secondary-gray);
  margin-bottom: 2rem;
}
#about .left .card .card-name {
  font-size: 2rem;
  margin-bottom: 0.2rem;
}
#about .left .card .card-sub-title {
  font-size: 1.4rem;
}
#about .subheading {
  color: var(--primary-color);
  margin-bottom: 1rem;
}
#about .right .slogan {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}
#about .right .right-text {
  color: var(--secondary-gray);
}
@media only screen and (max-width: 768px) {
  #about .wrapper {
    flex-direction: column;
    text-align: center;
  }
  #about .right .buttons {
    flex-direction: column;
  }
  #about .right .buttons a {
    width: 100%;
    text-align: center;
  }
}

/* Skills Section */
#skills,
#skills-scroll {
  padding: 5rem 0;
}
#skills .all-items {
  display: flex;
  align-items: center;
  justify-content: center;
}
#skills .item {
  padding: 1.5rem;
  transition: 0.3s ease-in-out background-color;
  border-radius: 12px;
}
#skills .item:nth-child(1):hover {
  background-color: rgb(8 69 241 / 35%);
}
#skills .item:nth-child(2):hover {
  background-color: rgba(0, 255, 115, 0.151);
}
#skills .item:nth-child(3):hover {
  background-color: #cbbef093;
}
#skills .item .icon {
  width: 50px;
  height: 50px;
  padding: 0.8rem;
  background-color: rgba(255, 0, 0, 0.24);
  border-radius: 50%;
  margin-bottom: 1rem;
}
#skills .item-heading {
  font-weight: 500;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-family: "Poppins";
}

#skills .item-desc {
  color: var(--secondary-gray);
}
#skills .item:nth-child(1) .icon {
  background-color: rgb(7 106 255 / 37%);
}
#skills .item:nth-child(2) .icon {
  background-color: rgba(0, 255, 115, 0.493);
}
#skills .item:nth-child(3) .icon {
  background-color: #4705fc80;
}
@media only screen and (max-width: 768px) {
  #skills .all-items {
    flex-direction: column;
    text-align: center;
  }
  #skills .item .icon {
    margin: 0 auto;
    margin-bottom: 1rem;
  }
  #skills .item {
    margin: 2rem 0;
  }
  #skills .item:nth-child(1) {
    background-color: rgb(8 69 241 / 35%);
  }
  #skills .item:nth-child(2) {
    background-color: rgba(0, 255, 115, 0.151);
  }
  #skills .item:nth-child(3) {
    background-color: #cbbef093;
  }
}

#skills2 {
  padding: 1rem 0;
  padding-bottom: 10rem;
}

#skills2 .all-items {
  display: flex;
  align-items: center;
  justify-content: center;
}
#skills2 .item {
  padding: 1.5rem;
  transition: 0.3s ease-in-out background-color;
  border-radius: 12px;
}
#skills2 .item:nth-child(1):hover {
  background-color: #e6806e;
}
#skills2 .item:nth-child(2):hover {
  background-color: #ee82b8;
}
#skills2 .item:nth-child(3):hover {
  background-color: #61c7bd;
}
#skills2 .item .icon {
  width: 57px;
  height: 57px;
  padding: 1rem;
  background-color: rgba(255, 0, 0, 0.24);
  border-radius: 70%;
  margin-bottom: 1rem;
}
#skills2 .item-heading {
  font-weight: 500;
  font-size: 2rem;

  margin-bottom: 1.5rem;
  font-family: "Poppins";
}

#skills2 .item-desc {
  color: var(--secondary-gray);
}
#skills2 .item:nth-child(1) .icon {
  background-color: tomato;
}
#skills2 .item:nth-child(2) .icon {
  background-color: violet;
}
#skills2 .item:nth-child(3) .icon {
  background-color: turquoise;
}
@media only screen and (max-width: 768px) {
  #skills2 .all-items {
    flex-direction: column;
    text-align: center;
  }
  #skills2 .item .icon {
    margin: 0 auto;
    margin-bottom: 1rem;
  }
  #skills2 .item {
    margin: 2rem 0;
  }
  #skills2 .item:nth-child(1) {
    background-color: #e6806e;
  }
  #skills2 .item:nth-child(2) {
    background-color: #ee82b8;
  }
  #skills2 .item:nth-child(3) {
    background-color: #61c7bd;
  }
}

/* hobbies Section */
#hobbies,
#hobbies-scroll {
  padding: 5rem 0;
}

#hobbies .item {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
  margin-bottom: 15rem;
}
#hobbies .item:nth-of-type(even) {
  flex-direction: row-reverse;
}
#hobbies .item .left {
  flex: 1;
}
#hobbies .item .right {
  margin-left: -150px;
  flex: 1;
  background-color: #ebfaef;
  padding: 5rem 3rem;
  border-radius: 12px;
  box-shadow: 0px 0px 20px #00000028;
  z-index: 2;
}
#hobbies .item:nth-of-type(even) .right {
  margin-left: 0;
}
#hobbies .item:nth-of-type(even) .left {
  margin-left: -150px;
}
#hobbies .item .left .img {
  height: 500px;
  overflow: hidden;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.557);
  position: relative;
}
#hobbies .item .left .img::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
}
#hobbies .item .left .img img {
  object-fit: cover;
  transition: 0.3s ease transform;
}
#hobbies .item:hover .left .img img {
  transform: scale(1.1);
  z-index: 1;
}
#hobbies .item .right .hobby-title {
  font-size: 2.5rem;
  font-family: "Montserrat";
  margin-bottom: 1rem;
}
#hobbies .item .right .hobby-sub-title {
  font-size: 1.6rem;
  margin-bottom: 2rem;
}
#hobbies .item .right .hobby-desc {
  color: var(--secondary-gray);
  margin-bottom: 3rem;
}
#hobbies .item .right .external-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: calc(0.6em - 4px) calc(1.6em - 4px);
}
#hobbies .item .right .external-link:hover {
  color: darkcyan;
}

#hobbies .item .right .external-link svg {
  width: 25px;
}

@media only screen and (max-width: 768px) {
  #hobbies .item {
    flex-direction: column;
  }
  #hobbies .item .left {
    width: 100%;
  }
  #hobbies .item .right {
    margin-left: 0;
    width: 90%;
    margin-top: -150px;
  }
  #hobbies .item:nth-of-type(even) {
    flex-direction: column;
  }
  #hobbies .item:nth-of-type(even) .left {
    margin-left: 0;
  }
}
@media only screen and (max-width: 450px) {
  #hobbies .item .right .buttons {
    flex-direction: column;
  }
  #hobbies .item .right .buttons a {
    width: 100%;
    text-align: center;
  }
}

/* Contact Section */
#contact,
#contact-scroll {
  padding: 5rem 0;
}
#contact .wrapper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 5rem;
}
#contact .wrapper .left {
  flex: 1;
}
#contact .wrapper .right {
  flex: 1;
}
#contact .left .contact-heading {
  font-family: "Montserrat";
  font-size: 3rem;
  margin-bottom: 1rem;
}
#contact .left .contact-desc {
  color: var(--secondary-gray);
  margin-bottom: 4rem;
}
#contact .left .contact-info {
  margin-bottom: 5rem;
}
#contact .left .contact-info ul {
  list-style: none;
}
#contact .left .contact-info ul li {
  border-radius: 12px;
  overflow: hidden;
}
#contact .left .contact-info ul li a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 2rem;
  padding: 1.5rem;
  font-weight: bold;
}

#contact .left .contact-info ul li:hover {
  background-color: var(--primary-color);
}

#contact .left .contact-info ul li a .text {
  text-transform: lowercase;
}

#contact .left .contact-info ul li a .text:hover {
  color: white;
}
#contact .left .contact-info .guelphtext {
  text-transform: none;
  display: flex;
  justify-content: center;
  font-size: 2rem;
  padding: 1.5rem;
}

#contact .left .social-info ul {
  display: flex;
  justify-content: center;
  list-style: none;
}
#contact .left .social-info ul li {
  padding: 1rem;
}
.fa-facebook {
  color: #4267b2;
}

.fa-twitter {
  color: #00acee;
}
.fa-instagram {
  color: #e4405f;
}
.fa-linkedin {
  color: #0077b5;
}

#contact .social-info ul li:hover {
  background-color: white;
  border-radius: 10px;
}
#contact .right .form-wrapper {
  background-color: var(--primary-color);
  max-width: 500px;
  margin: 0 auto;
  padding: 5rem;
  border-radius: 12px;
  color: white;
}

#contact .right .form-group label {
  margin-bottom: 0.5rem;
  display: inline-block;
  font-size: 1.8rem;
}
#contact .right .form-group .input-wrapper {
  background-color: white;
  color: black;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 40px;
  border-radius: 4px;
  overflow: hidden;
}

#contact .right .form-group .input-wrapper input {
  padding: 1rem;
  height: 100%;
  width: 100%;
  outline: none;
  border: none;
  font-size: 2rem;
}
#contact .right .form-group textarea {
  width: 100%;
  height: 250px;
  resize: vertical;
  font-size: 2rem;
  padding: 1rem;
  outline: none;
  border-radius: 4px;
}
#contact .right .form-wrapper button {
  display: inline-block;
  width: 150px;
  font-size: 2rem;
  text-transform: uppercase;
  height: auto;
  padding: 1rem 0;
  font-family: "Roboto Mono";
  letter-spacing: 0.3rem;
  border-radius: 8px;
  outline: none;
  border: none;
  cursor: pointer;
}

@media only screen and (max-width: 768px) {
  #contact .wrapper {
    flex-direction: column-reverse;
    justify-content: center;
    align-items: center;
  }
  #contact .right {
    width: 100%;
  }
  #contact .right .form-wrapper {
    padding: 3rem;
    width: 100%;
    max-width: 100%;
  }
  #contact .contact-heading {
    display: none;
  }
  #contact .contact-desc {
    display: none;
  }

  #contact .social-info {
    width: fit-content;
    margin: 0 auto;
  }
}

/* 404 page */

.page-not-found img {
  position: relative;
  top: -50px;
}

.page-not-found {
  position: absolute;
  left: 50%;
  top: 60%;
  transform: translate(-50%, -60%);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.fourOfour-body {
  background-color: white;
}
.page-not-found h1 {
  color: #3b3a39;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 3rem;
  margin: 0px 0px 0px 0px;
}

.page-not-found p {
  color: #808080;
  font-size: 2rem;
  width: 80%;
  text-align: center;
  margin: 5px;
  font-weight: 300;
}

.page-not-found button {
  width: 140px;
  height: 40px;
  margin: 10px;
  background-color: #2f2e41;
  color: white;
  text-transform: uppercase;
  outline: none;
  letter-spacing: 1px;
  box-shadow: 2px 2px 30px #464a4b;
  cursor: pointer;
  flex-direction: row;
}

.page-not-found button:hover {
  background-color: #637eff;
  transition: all ease 0.5s;
}

@media (max-width: 900px) {
  .page-not-found img {
    height: 180px;
  }
  .page-not-found p {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .page-not-found {
    width: 100%;
  }
  .page-not-found img {
    height: 120px;
  }
  .page-not-found h1 {
    font-size: 1.4rem;
  }
  .page-not-found p {
    width: 90%;
  }
}

/* Footer Section */

#footer {
  background-color: #231b6e;
  color: white;
  padding: 2rem 0 2rem 0;
}
#footer footer {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10rem;
}
#footer footer .col-1 {
  flex: 3;
}
#footer footer .col-2,
#footer footer .col-3,
#footer footer .col-4 {
  flex: 1;
}
#footer .logo img {
  position: relative;
  max-width: 100%;
  height: auto;
}

#footer footer .column-heading {
  font-family: "Montserrat";
  font-size: 2rem;
  margin-bottom: 2rem;
  text-transform: uppercase;
  line-height: 1.5em;
  text-align: center;
}

.footer-contact-info {
  text-transform: none;
}
#footer footer ul {
  list-style: none;
}
#footer footer ul li {
  border-radius: 4px;
}
#footer footer ul li:hover {
  background-color: white;
}
#footer footer ul li:hover a {
  color: var(--primary-color);
}

#footer footer ul li a {
  width: 100%;
  color: white;
  font-size: 1.7rem;
}
#footer footer b {
  display: flex;
  justify-content: center;
  color: white;
  font-size: 1.7rem;
  padding: 2rem;
}
#footer footer .col-4 ul {
  display: flex;
  flex-wrap: wrap;
}
#footer footer .col-4 ul li a {
  min-width: 50px;
}
#footer footer .col-4 ul li {
  padding: 1rem;
}
@media only screen and (max-width: 768px) {
  #footer footer {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
  }
  #footer footer .col-1 {
    display: none;
  }
  #footer footer .col-2,
  #footer footer .col-3,
  #footer footer .col-4 {
    width: 100%;
  }
  #footer footer .col-2 ul li:hover,
  #footer footer .col-3 ul li:hover {
    background-color: #231b6e;
  }

  #footer footer .col-4 ul li:hover {
    background-color: white;
  }

  #footer footer .col-4 ul {
    width: fit-content;
    margin: 0 auto;
  }
}

/* Copyright Section */
#copyright {
  padding: 1rem 0;
  background-color: #1b5d6e;
}
#copyright p {
  color: white;
  margin: 1rem;
  text-align: center;
  font-size: 1.4rem;
}
@media only screen and (max-width: 768px) {
  #copyright {
    padding: 1rem 0;
    background-color: #1b5d6e;
    overflow: auto;
  }
  #copyright p {
    text-align: center;
  }
}
