@media (max-width: 400px) {
  #header-home {
    height: 80vh !important;
  }
  #header-home h1 {
    font-size: 2rem !important;
  }
  #header-home p {
    text-align: center;
  }
  #header-inner {
    height: 20rem !important;
  }
  #header-inner #main-nav {
    flex-direction: column;
    align-items: center;
  }
  #main-nav {
    flex-direction: column;
    align-items: center;
  }
  #main-nav li {
    padding: 1rem;
  }
  #main-nav li a {
    padding: 0;
  }
  #home-a .container {
    margin-bottom: 1rem;
    margin-bottom: 0 !important;
  }
  #home-b .specials {
    width: 100%;
    border-radius: 1rem;
  }
  #home-b .specials .columns {
    flex-direction: column !important;
  }
  #home-b .specials .columns .col-sm-6 {
    width: 100%;
  }
  #home-b .specials .columns .col-sm-6:first-child {
    border-right: none;
    border-bottom: 1px solid #333;
  }
  #home-c .container {
    margin-top: 1rem;
    flex-direction: column;
    height: 40vh !important;
  }
  #main-footer .footer-content {
    flex-direction: column;
  }
  #main-footer p {
    font-size: 1rem !important;
  }
  #about-a .lead {
    font-size: 1rem !important;
  }
  #about-a .about-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  #about-a .about-info .bio-image,
  #about-a .about-info img {
    margin-top: 1rem;
    width: 20rem !important;
    height: 20rem !important;
  }
  #about-a .about-info .bio {
    margin-top: 1rem;
    border-left: none;
    display: flex;
    flex-direction: column;
    border: none;
    box-shadow: none;
    width: 100% !important;
  }
  #about-b {
    margin: 1rem 2rem;
  }
  #about-b .col-sm-4 {
    margin: 0 1rem;
  }
  #work-a .flex-row,
  .flex-row-reverse {
    flex-direction: column !important;
  }
}
@media (min-width: 400px) and (max-width: 768px) {
  #main-nav {
    flex-direction: column;
    align-items: center;
  }
  #main-nav li {
    padding: 1rem;
  }
  #main-nav li a {
    padding: 0;
  }
  #header-home {
    height: 60vh !important;
    border-bottom: 3px solid #ffb996;
    background-position: 20% 30%;
  }
  #header-home .container {
    border-bottom: 1px solid #333;
  }
  #header-home .header-content {
    margin: 0 1rem;
    justify-content: flex-start !important;
  }
  #header-home .header-content h1 {
    margin-top: 1rem;
    font-size: 3rem;
  }
  #header-home li {
    padding: 1rem !important;
  }
  #header-inner {
    height: 15rem !important;
  }
  #header-inner #main-nav {
    flex-direction: column;
    align-items: center;
  }
  #home-a .container {
    margin-bottom: 1rem;
    margin-bottom: 0 !important;
  }
  #home-b .specials {
    width: 100%;
    border-radius: 1rem;
  }
  #home-b .specials .columns {
    flex-direction: column !important;
  }
  #home-b .specials .columns .col-sm-6 {
    width: 100%;
  }
  #home-b .specials .columns .col-sm-6:first-child {
    border-right: none;
    border-bottom: 1px solid #333;
  }
  #home-c .container {
    margin-top: 1rem;
    flex-direction: column;
    height: 30vh !important;
  }
  #about-a .lead {
    font-size: 1rem !important;
  }
  #about-a .about-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  #about-a .about-info .bio-image,
  #about-a .about-info img {
    margin-top: 1rem;
    width: 20rem !important;
    height: 20rem !important;
  }
  #about-a .about-info .bio {
    margin-top: 1rem;
    border-left: none;
    display: flex;
    flex-direction: column;
    border: none;
    box-shadow: none;
    width: 100% !important;
  }
  #about-b {
    margin: 1rem 2rem;
  }
  #about-b .col-sm-4 {
    margin: 0 1rem;
  }
  #work-a .flex-row,
  .flex-row-reverse {
    flex-direction: column !important;
  }
  #work-a .col-sm-4 {
    margin-bottom: 1rem;
  }
  #contact-a {
    margin-top: -5rem;
  }
  #contact-a h2 {
    font-size: 1.5rem;
  }
  #contact-a p {
    font-size: 1rem;
  }
  #contact-a button[type="submit"] {
    width: 60%;
    padding: 0.4rem !important;
  }
  #contact-a .text-input {
    text-align: center;
  }
  #contact-b .contact-info {
    flex-direction: column;
  }
  #contact-c h1 {
    font-size: 1rem !important;
  }
  #main-footer .footer-content {
    flex-direction: column;
    padding: 1rem;
  }
  #main-footer .footer-content p {
    margin-top: 0.5rem;
    padding-bottom: 0.6rem;
    font-size: 1rem !important;
  }
  #main-footer .footer-content .social .fab {
    margin-top: 2rem;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  #header-home {
    height: 30rem;
  }
  #header-home p {
    text-align: center;
  }
  #about-a .lead {
    font-size: 1rem !important;
  }
  #about-a .about-info .bio-image,
  #about-a .about-info img {
    margin-top: 1rem;
    width: 25rem !important;
    height: 25rem !important;
  }
  #about-a .about-info .bio {
    margin-top: 1rem;
    width: 100% !important;
  }
  #work-a .flex-row,
  .flex-row-reverse {
    flex-direction: column !important;
  }
  #work-a .flex-row .col-sm-4,
  .flex-row-reverse .col-sm-4 {
    margin: 2rem auto;
    width: 80vw;
  }

  #work-a .flex-row .col-sm-7,
  .flex-row-reverse .col-sm-7 {
    margin: auto;
    width: 100vw;
  }
}

@media (max-height: 580px) {
  #header-home .header-content {
    padding-top: 3rem;
  }
}

@media (max-height: 330px) {
  #header-home .header-content h1 {
    font-size: 2rem;
  }
}

:root {
  --primary-color: #9b4819;
  --secondary-color: #314028;
  --background-color: #f1f1f1;
  --text-color: #191919;
  --light-color: #f4f1e8;
  --neutral-shade: #bd8f53;
  --highlight-color: #f4a300;
}
* {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Dosis", sans-serif;
  line-height: 1.6;
  background: --background-color;
}

a {
  text-decoration: none;
  color: var(--primary-color);
}

ul {
  list-style: none;
}

img {
  width: 100%;
}

h1,
p {
  color: --text-color;
}

h2,
h3,
h4,
h5,
h6 {
  color: var(--primary-color);
}
.container {
  max-width: 1280px;
  padding: 0 1.5rem;
  margin: auto;
  overflow: hidden;
}
/* Buttons */
.btn-main,
.btn-light,
.btn-dark {
  display: inline-block;
  padding: 0.8rem 2rem;
  transition: all 0.5s;
  border: 0.1rem solid;
  cursor: pointer;
}

.btn-main {
  color: var(--primary-color);
  transition: all 1s;
}
.btn-main:hover {
  background-color: var(--background-color);
  color: var(--secondary-color);
  opacity: 0.7;
}

.btn-light {
  color: var(--light-color);
}

.btn-dark {
  color: var(--light-color);
  background-color: var(--secondary-color);
  border-radius: 0.8rem;
}
.btn-dark:hover {
  color: #1b1b1b;
  background-color: var(--light-color);
}

.projectButton {
  padding: 0.7rem 1.5rem;
  background-color: var(--primary-color);
  color: var(--light-color);
  border-radius: 0.7rem;
}

#logo {
  width: 100px;
  height: 100px;
  margin-top: 0;
}

/* Navigation Bar */
#main-nav {
  display: flex;
  justify-content: space-between;
  padding-top: 1rem;
  width: 100%;
}
#main-nav ul {
  display: flex;
}
#main-nav li {
  padding: 1rem 1.5rem;
}
#main-nav a {
  border-bottom: 3px transparent solid;
  padding: 0.5rem;
  transition: border-color 0.5s;
}

#header-inner {
  background: url("../image/header.jpg") no-repeat 60% 70% / cover;
  height: 9rem;
}
#header-inner a {
  color: var(--light-color);
}

/* Home Page */
#header-home {
  background: url("../image/home.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: top;
  height: 80vh;
}
#header-home .header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}
#header-home h1 {
  font-size: 4rem;
  line-height: 1.2;
  margin-bottom: 0.4rem;
}

#header-home h1 span {
  color: var(--primary-color);
}
#header-home h2 {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 0.4rem;
}
#header-home p {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

#home-a .container {
  border: 1px solid var(--primary-color);
  height: 40vh;
  width: 70%;
  text-align: start;
}

#home-b .specials {
  text-align: center;
  width: 80vw;
  margin: 0.5rem auto;
  background-color: var(--secondary-color);
  box-shadow: -1.5rem 1.5rem 1rem -1rem var(--primary-color);
  border-radius: 0.5rem;
}

#home-b h3,
h4 {
  color: var(--light-color);
  border-bottom: 0.1rem dotted var(--neutral-shade);
  font-style: oblique;
}
#home-b p {
  color: var(--light-color);
}
#home-b .specials .columns {
  display: flex;
  flex-direction: row;
  padding: 2rem;
}
#home-b .specials .col-sm-6 {
  width: 50%;
  padding: 0.5rem;
}
#home-b .specials .col-sm-6:first-child {
  border-right: 0.05rem var(--primary-color) dotted;
}
#home-b .specials .col-sm-6:first-child .word {
  word-spacing: 2.5rem;
}
#home-b .specials .col-sm-6:first-child li {
  padding: 1rem;
}
#home-b .specials i {
  font-size: 2rem;
  padding: 0.5rem 1rem;
  transition: all 0.5s;
  background-color: var(--primary-color);
  border: 0.1rem solid;
  border-radius: 50%;
  color: var(--light-color);
}
#home-b .specials i:hover {
  scale: 1.2;
}

#home-c .container {
  background-color: #9b4819;
  width: 90%;
  height: 20vh;
  border: 1px solid;
  color: var(--light-color);
  border-radius: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: center;
}
#home-c .container h2 {
  color: var(--light-color);
}
#home-c .container a {
  border: 0.1rem solid var(--neutral-shade);
  color: var(--light-color);
  border-radius: 3rem;
  padding: 1rem 1.5rem;
  text-decoration: none;
  font-size: 1.8rem;
}
#home-c .container a:hover {
  color: var(--light-color);
  border: none;
  background-color: var(--neutral-shade);
}
#home-c .container i {
  color: var(--secondary-color);
  font-size: 2rem;
}

/* About Page */

#about-a .about-info {
  display: flex;
  justify-content: center;
  align-items: center;
}
#about-a .about-info .bio-image,
#about-a .about-info img {
  margin-right: 1rem;
  width: 30rem;
  height: 30rem;
}
#about-a .section-title {
  opacity: 0.8;
  width: 60%;
  margin: 0 auto 1rem auto;
  font-size: 2rem;
  display: block;
  padding-bottom: 0.5rem;
  text-align: center;
  font-weight: 100;
  text-transform: uppercase;
}

#about-a .bio {
  padding: 2rem;
  background-color: var(--background-color);
  border: 1px solid var(--primary-color);
  box-shadow: 1.5rem 1.5rem 1rem -1rem var(--primary-color);
  border-radius: 0.5rem;
}

#about-b .col-sm-3 {
  margin-bottom: 1rem;
  margin-right: 1rem;
  border: 1px solid #1b1b1b;
  justify-content: space-between;
  box-shadow: 1.5rem 1.5rem 1rem -1rem var(--secondary-color);
  transform: translateX(400%);
  transition: transform 0.4s ease;
}
#about-b .col-sm-3 .card {
  border: none;
}

/* 
selects the even-numbered elements */
#about-b .col-sm-3:nth-of-type(even) {
  transform: translateX(-400%);
}
#about-b .col-sm-3.show {
  transform: translateX(0);
}

/* Project page */
#work-a .card {
  background-color: var(--light-color);
  position: relative;
  overflow: hidden;
  box-shadow: 6px 6px 0px var(--secondary-color);
}
#work-a .flex-row-reverse .card {
  position: relative;
  overflow: hidden;
  box-shadow: -8px 6px 0px 0px var(--secondary-color);
}
#work-a h4 {
  color: var(--primary-color);
  border: none;
}
#work-a .card::after {
  content: "";
  position: absolute;
  display: block;
  background-color: var(--highlight-color);
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
  transform: translateX(-220%) translateY(-10%) rotate(50deg);
  transition: transform 5s cubic-bezier(0.175, 2, 0.32, 1.275);
}
#work-a .card:hover::after {
  transform: scale(1) translateX(-100%) translateY(-10%) rotate(50deg);
}

.slideshow {
  max-width: 600px;
  margin: auto;
}
.slide {
  display: none;
}

#work-b .container {
  border: 1px solid var(--primary-color);
  height: 40vh;
  width: 70%;
  text-align: start;
}
/* Contact page */
#contact-a p {
  text-align: center;
}

#contact-a .container {
  width: 50vw;
  box-shadow: rgba(100, 100, 111, 0.7) 0 7px 29px 0;
  background: #fff;
  padding: 4rem;
  margin-top: 6rem;
  border-radius: 5px;
  margin: 5rem auto 0 auto;
}

#contact-a .text-fields {
  display: flex;
  flex-direction: column;
  grid-gap: 1.2rem;
  margin-bottom: 1.2rem;
}
#contact-a .text-fields .message-input {
  height: 100px;
}
#contact-a .text-fields .text-input {
  padding: 0.5rem 1rem;
}

#contact-a .submitBtn {
  display: flex;
  justify-content: center;
}

#contact-a button[type="submit"] {
  width: 30%;
}

#contact-b {
  background-color: var(--light-color);
  margin: 1rem 0rem;
  padding: 1rem 0rem;
}
#contact-b .contact-info {
  color: var(--primary-color);
  display: flex;
  justify-content: space-between;
  text-align: center;
}
#contact-b .contact-info i {
  font-size: 1.5rem;
  padding: 1rem;
  transition: all 0.5s;
}
#contact-b .contact-info i:hover {
  scale: 1.2;
  color: var(--neutral-shade);
}

#contact-c {
  padding: 1.5rem;
  background-color: var(--neutral-shade);
  margin-bottom: 1rem;
  opacity: 0.8;
}
#contact-c h1 {
  text-align: center;
  font-size: 2rem;
}

/* Footer */
#main-footer {
  background: var(--primary-color);
  color: var(--light-color);
}
#main-footer a {
  color: var(--light-color);
}
#main-footer .footer-content {
  display: flex;
  justify-content: space-around;
  padding: 1rem;
  align-items: center;
}
#main-footer .footer-content .social .fab {
  margin-right: 1rem;
  border: 0.1rem var(--neutral-shade) solid;
  border-radius: 50%;
  line-height: 0.7rem;
  text-align: center;
  padding: 0.5rem 0.7rem;
  transition: all 0.5s;
}
#main-footer .footer-content .social .fab:hover {
  background: var(--neutral-shade);
  scale: 1.2;
}
#main-footer .footer-content p {
  font-size: 1.1rem;
}

/* Border style */
.icon-border {
  border-bottom: 4px solid transparent;
  background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 4"%3E%3Ccircle cx="2" cy="2" r="2" fill="%23f39c12" /%3E%3C/svg%3E')
    repeat-x bottom;
  padding-bottom: 5px;
}

.wavy-border {
  position: relative;
  padding-bottom: 10px;
}

.wavy-border::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 10px;
  background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="100" height="10" viewBox="0 0 100 10"%3E%3Cpath d="M0 5 Q25 0 50 5 T100 5" fill="none" stroke="%232ecc71" stroke-width="2"%3E%3C/path%3E%3C/svg%3E');
  background-size: cover;
}
.pseudo-wave-border {
  position: relative;
  padding-bottom: 20px;
}

.pseudo-wave-border::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background-color: var(--primary-color);
  border-radius: 50% / 100%;
}

.zigzag-border {
  display: inline-block;
  position: relative;
  padding-bottom: 5px;
}

.zigzag-border::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    45deg,
    var(--primary-color) 25%,
    transparent 25%,
    transparent 50%,
    var(--primary-color) 50%,
    var(--primary-color) 75%,
    transparent 75%
  );
  background-size: 8px 8px;
}

.flashing-border {
  border-bottom: 3px solid var(--light-color);
  animation: flash 1s infinite;
  padding-bottom: 5px;
}

@keyframes flash {
  0% {
    border-color: var(--light-color);
  }
  50% {
    border-color: transparent;
  }
  100% {
    border-color: var(--light-color);
  }
}

.hover-border {
  position: relative;
  padding-bottom: 5px;
}

.hover-border::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #f39c12;
  transition: width 0.3s ease;
}

.hover-border:hover::after {
  width: 100%;
}

/* Header animation */

#animated-header {
  font-size: 2rem;
  white-space: nowrap;
  animation: blink-caret 0.5s step-end infinite;
}

@keyframes blink-caret {
  50% {
    border-color: transparent;
  }
}

.reflection {
  position: relative;

  background-clip: text;
  -webkit-background-clip: text;
}

.reflection::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.5),
    transparent
  );
  transform: skewX(-20deg);
  animation: shine 2s infinite;
}

@keyframes shine {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.slider-container {
  width: 640px;
  height: 360px;
  overflow: hidden;
}

.slider-slide {
  opacity: 0;
  transition: left 1s ease, opacity 1s ease;
}

/* Show the active slide */
.slider-slide.active {
  left: 0;
  opacity: 1;
}

/* Transition effect for smooth slide-in/out */
.slider-container:hover .slider-slide {
  animation: slide 12s infinite;
}

/* Keyframe animation for sliding transition */
@keyframes slide {
  0% {
    left: 100%;
    opacity: 0;
  }
  25% {
    left: 0%;
    opacity: 1;
  }
  50% {
    left: 100%;
    opacity: 0;
  }
  75% {
    left: 100%;
    opacity: 0;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}

.navigation {
  position: relative;
  width: 25rem;
  height: 4.6rem;
  /* background: linear-gradient(45deg, #ecad88, #9b4819); */
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid #9b4819;
  border-radius: 0.625rem;
  margin-top: 2rem;
  margin-right: 1rem;
}
.navigation ul {
  display: flex;
  width: 21.875rem;
  margin-bottom: 2rem;
}
.navigation ul li {
  position: relative;
  width: 4.375rem;
  height: 4.375rem;
  list-style: none;
  z-index: 1;
}
.navigation ul li a {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
  text-align: center;
  font-weight: 500;
}

.navigation ul li a .icon {
  position: relative;
  display: block;
  line-height: 4.6875rem;
  font-size: 1.5em;
  text-align: center;
  color: #fff;
  transition: transform 0.2s;
}
.navigation ul li .icon:hover {
  transform: scale(1.3);
}
.navigation ul li.active a .icon {
  transform: translateY(-3.1rem);
}
.navigation ul li a .text {
  position: absolute;
  color: #fff;
  font-weight: 400;
  font-size: 1.3rem;
  letter-spacing: 0.05em;
  opacity: 0;
  transform: translateY(1.25rem);
  transition: 0.5s;
}
.navigation ul li.active a .text {
  opacity: 1;
  transform: translateY(0.625rem);
}
.navigation ul li a .circle {
  position: absolute;
  display: block;
  width: 3.125rem;
  height: 3.125rem;
  background: transparent;
  border-radius: 50%;
  border: 0.1125rem solid #fff;
  transform: translateY(-1.875rem) scale(0);
}
.navigation ul li.active a .circle {
  transition: 0.5s;
  transition-delay: 0.5s;
  transform: translateY(-2.85rem) scale(1);
}
.indicator {
  position: absolute;
  top: -50%;
  width: 4.375rem;
  height: 4.375rem;
  background: linear-gradient(45deg, #ecad88, #9b4819);
  border: 6px solid #ccc0ba;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.5s;
}
.indicator::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -22px;
  width: 1.25rem;
  height: 1.25rem;
  background: transparent;
  border-top-right-radius: 1.25rem;
}
.indicator::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -22px;
  width: 1.25rem;
  height: 1.25rem;
  background: transparent;
  border-top-left-radius: 1.25rem;
}
.navigation ul li:nth-child(1).active ~ .indicator {
  transform: translateX(calc(4.375rem * 0));
}
.navigation ul li:nth-child(2).active ~ .indicator {
  transform: translateX(calc(4.375rem * 1));
}
.navigation ul li:nth-child(3).active ~ .indicator {
  transform: translateX(calc(4.375rem * 2));
}
.navigation ul li:nth-child(4).active ~ .indicator {
  transform: translateX(calc(4.375rem * 3));
}
.navigation ul li:nth-child(5).active ~ .indicator {
  transform: translateX(calc(4.375rem * 4));
}

.inContact {
  left: 24.3%;
  top: -65% !important;
  width: 3.5rem !important;
  height: 3.5rem !important;
}
