* {
  box-sizing: border-box;
}

:root {
  --main-black: #181719;
  --main-red: rgb(226, 66, 66);
  --main-white: white;
}

html {
  scroll-behavior: smooth;
  font-size: 65%;
}

@media (max-width: 75em) {
  html {
    font-size: 57%;
  }
}

body {
/*   font-family: 'Courier New', Courier, monospace; */
  line-height: 1.5;
  min-height: 100vh;
  font-size: 1.8rem;
}

h1,h2,h3,h4,h5,h6 {font-family: "Montserrat"}

img,
picture {
  width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
}

ul {
  list-style: none;
}

.section-bg {
  background: linear-gradient(180deg, #F2F2F2 0%, white 100%);
}

.section-layout {
  color: #181719;
  margin-left: 5%;
  margin-right: 5%;
}

.row-title h3 {
  font-size: 3rem;
  font-weight: bold;
  display: inline-block;
  position: relative;
}

.row-title span {
  position: absolute; 
  bottom: 0; 
  left: 20%; 
  transform: translateX(-50%); 
  border-bottom: 3px solid var(--main-red); 
  width: 40%;
}

.offcanvas-brand {
  font-size: 25px;
  font-weight: 600;
}

.navbar-brand {
  font-size: 3rem;
  font-weight: 600;
  padding-left: 20px;
}

.navbar-brand:hover {
  color: var(--main-red);
}

.brand-sm {
  display: none;
}

@media (max-width: 767px) {
  .brand-lg {
    display: none;
  }
  .brand-sm {
    display: block;
  }
}

.nav-link:active {
  color: var(--main-red);
}

.nav-link:hover {
  color: var(--main-red);
}

/* Home section*/
.home {
  height: 100vh;
  background-color: whitesmoke;
  color: var(--main-red);
  /* background-image: url("https://images.unsplash.com/photo-1507238691740-187a5b1d37b8?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxzZWFyY2h8Mnx8d2Vic2l0ZXxlbnwwfHwwfHw%3D&auto=format&fit=crop&w=500&q=60");
  background-repeat: no-repeat;
  background-size: cover; */
}

.home h1 {
  font-size: 5rem;
  font-weight: bold;
}

.home p {
  font-size: 3rem;
}

/* end */

/* About Section*/
#about {
  padding-top: 5%;
}

.about .card {
  background-image: url('https://images.unsplash.com/photo-1614926037384-4159c33e196b?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxzZWFyY2h8MTh8fGdhbGF4eXxlbnwwfHwwfHw%3D&auto=format&fit=crop&w=500&q=60');
}

.about img {
  width: 300px;
}

.about-me {
  margin-left: 50px;
}

@media (max-width: 991px) {
  .about-me {
    margin-left: auto;
  }
}

#about h4,
#portfolio h4 {
  font-size: 2rem;
  font-weight: 600;
}

.tech-stack .fa {
  color: var(--main-red);
}

.services .fa {
  color: var(--main-red);
  font-size: 5rem;
  margin: 0 auto;
}

.services .card {
  padding: 0;
}

/* Portfolio section */
.portfolio span {
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--main-red);
}

.portfolio a:hover {
  color: var(--main-black);
}

.portfolio i {
  margin: 0 5px; /* adjust the margin as needed */
}

.p4t {
  width: 60px;
  height: 60px;
}


/* END Portfolio section */

/* contact section*/
.contact span a {
  color: #181719;
}

.contact .fa {
  font-size: 4rem;
  color: var(--main-red);
}

.social [class*="fa fa-"] {
  background-color: #333;
  border-radius: 50px;
  color: #fff;
  display: inline-block;
  height: 50px;
  line-height: 50px;
  margin: auto 3px;
  width: 50px;
  font-size: 25px;
  text-align: center;
}

.social .fa:hover { 
  background-color: var(--main-red); 
}

@media (max-width: 800px) {
  .social [class*="fa fa-"] {
    border-radius: 30px;
    height: 30px;
    line-height: 30px;
    width: 30px;
    font-size: 15px;
  }
}

/* Style inputs */
input[type=text], select, textarea {
  width: 100%;
  padding: 10px;
  border: 2px solid #ccc;
  margin-top: 6px;
  margin-bottom: 16px;
  resize: vertical;
  border-radius: 5px;
}

input::-webkit-input-placeholder {
  font-size: 1.5rem;
  line-height: 3;
}

textarea::placeholder {
  font-size: 1.5rem;
}

.btn {
  background-color: var(--main-red);
}

.btn:hover {
  background-color: #333;
}

.contact-sm {
  display: none;
}

@media (max-width: 767px) {
  .contact {
    display: flex;
    flex-direction: column-reverse;
  }
  .contact-lg {
    display: none;
  }
  .contact-sm {
    display: block;
    margin-left: 10%;
  }
}

@media (max-width: 420px) {
  .home h1 {
    font-size: 3rem;
  }
  
  .home p {
    font-size: 1.5rem;
  }
  .section-layout {
    margin-left: 0;
    margin-right: 0;
  }
  .about img {
    width: 200px;
  }
}
