/* Bootstrap */
@import url(https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css);

/* Clean starting point */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  font-family: "Montserrat", sans-serif;
}

.container {
  margin-right: auto;
  margin-left: auto;
  padding: 0 15px;
  width: 100%;
  height: 100%;
}

@media only screen and (max-width: 650px) {
  .container {
    width: 100%;
    padding: 0 20px;
  }
}

.container-fluid {
  margin: 0 auto;
  padding: 0 15px;
}

hr.rainbow-bar {
  border: none;
  height: 3px;
  background: linear-gradient(
    90deg,
    #c33173,
    #f9a937,
    #b3c44e,
    #6463b9,
    #78ced8,
    #e0cb0c
  );
  margin-bottom: 30px;
  border-radius: 2px;
}

/* ====== HEADER STYLES ====== */
h1 {
  font-family: "Playfair Display", serif;
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2.5rem;
  line-height: 2.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.5rem;
  line-height: 1.75rem;
  font-weight: bold;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
  color: black;
}

.description {
  margin-bottom: 8rem;
}

.dropcap {
  float: left;
  font-size: 4rem;
  font-weight: 600;
  line-height: 1;
  margin-right: 0.1em;
}

.caption {
  font-size: 1.2rem;
  font-weight: 400;
  color: #666;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.previous {
  background-color: #f1f1f1;
  color: black;
  padding: 5px;
}

.next {
  background-color: black;
  color: white;
  padding: 5px;
}

@media only screen and (max-width: 650px) {
  h1 {
    font-size: 2.5rem;
  }

  hr.part-divider {
    margin: 0 0 3rem;
  }

  h2 {
    font-size: 2rem;
    line-height: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
  }
}

.about-content {
  padding: 1.25rem;
  color: #fff;
  border-radius: 8px;
}

/* Fade in animation on scroll */
.fade-in-element {
  opacity: 0;
  transform: translateY(40px); /* Optional: for a subtle slide-up */
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out; /* Smooth transition */
}

.fade-in-element.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* About page layout styles */
.about-background-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.about-content-wrapper {
  width: 80%;
  display: flex;
  flex-direction: column;
}

.about-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Desktop layout - two columns */
@media (min-width: 1010px) {
  .about-content-wrapper {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .about-image {
    flex: 1;
    margin-bottom: 0;
  }

  .about-content {
    flex: 1;
  }
}

/* Award-winning projects individual pages styles */
.portfolio-item {
  margin-top: 60px;
}

/* ====== IMAGE STYLES ====== */
img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border: black 0.5px solid;
  padding: 0;
}

.about-background-image {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3)),
    url(../images/tarot-background.jpg);
  height: 100vh;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  margin: 0;
  padding: 0;
}

.portfolio-image {
  margin-top: 5%;
}

/* ====== HOME PAGE HERO IMAGE AND SCROLLER TEXT ====== */
/* Hero image */
.hero-image {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url(../images/hero-image-collage_v001.png);
  height: 100vh;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  margin: 0 0 50px;
  padding: 0;
}

/* Hero image adjust to center on mobile */
@media only screen and (max-width: 650px) {
  .hero-image {
    background-position: center top;
    margin: 0 0 25px;
  }
}

/*  Text over image placement */
.hero-text {
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-family: "Playfair Display", serif;
  font-size: 3rem;
}

/* Slider */
#textSlider.row {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100% !important;
}

/* Move text slider up on mobile */
@media only screen and (max-width: 650px) {
  #textSlider.row {
    top: 40%;
  }
}

#textSlider div {
  color: #fff;
  font-family: "Montserrat", sans-serif;
  text-transform: uppercase;
}

.iamCol {
  text-align: left;
  float: left;
  font-weight: 300;
  font-size: 30pt;
}
.iamCol p:nth-child(2) {
  margin-top: -20pt;
}

.slideCol {
  text-align: left;
  font-weight: 900;
  font-size: 70pt;
  display: block;
  white-space: nowrap;
}

.slideCol p {
  margin: 0px !important;
}

.scroller {
  height: 70pt;
  line-height: 70pt;
  overflow: hidden;
}
.scroller .inner {
  animation: 10s normal infinite running scroll;
}
@keyframes scroll {
  0% {
    margin-top: 0px;
  }
  15% {
    margin-top: 0px;
  }

  25% {
    margin-top: -70pt;
  }
  40% {
    margin-top: -70pt;
  }

  50% {
    margin-top: -140pt;
  }
  65% {
    margin-top: -140pt;
  }

  75% {
    margin-top: -210pt;
  }
  90% {
    margin-top: -210pt;
  }

  100% {
    margin-top: 0px;
  }
}

/* Mobile Friendly Margins for Animations */
@media only screen and (max-width: 650px) {
  .scroller {
    height: 25pt;
    line-height: 25pt;
    overflow: hidden;
  }
  .scroller .inner {
    animation: 10s normal infinite running scroll;
  }
  @keyframes scroll {
    0% {
      margin-top: 0px;
    }
    15% {
      margin-top: 0px;
    }
    25% {
      margin-top: -25pt;
    }
    40% {
      margin-top: -25pt;
    }
    50% {
      margin-top: -50pt;
    }
    65% {
      margin-top: -50pt;
    }
    75% {
      margin-top: -75pt;
    }
    90% {
      margin-top: -75pt;
    }
    100% {
      margin-top: 0px;
    }
  }
}

/*==========  Mobile First Method  ==========*/

/* Custom, iPhone Retina */
@media only screen and (min-width: 320px) and (max-width: 650px) {
  #textSlider.row {
    margin-right: 0px !important;
    margin-left: 0px !important;
  }
  .iamCol {
    text-align: center;
    font-size: 16pt;
  }
  .iamCol p {
    display: inline !important;
  }
  .slideCol {
    font-size: 20pt;
    text-align: center;
    margin-top: 0px;
  }
}

/* Extra Small Devices, Phones */
@media only screen and (min-width: 650px) and (max-width: 768px) {
  #textSlider.row {
    margin-right: 0px !important;
    margin-left: 0px !important;
  }
  .iamCol {
    text-align: center;
    font-size: 30pt;
    margin-bottom: -6px;
  }
  .iamCol p {
    display: inline !important;
  }
  .slideCol {
    font-size: 38pt;
    text-align: center;
    margin-top: 0px;
  }
}

/* Small Devices, Tablets */
@media only screen and (min-width: 768px) and (max-width: 992px) {
  #textSlider.row {
    margin-right: 0px !important;
    margin-left: 0px !important;
  }
  .iamCol {
    text-align: center;
    font-size: 30pt;
    margin-bottom: -10px;
  }
  .iamCol p {
    display: inline !important;
  }
  .slideCol {
    font-size: 38pt;
    text-align: center;
    margin-top: 0px;
  }
}

/* Medium Devices, Desktops */
@media only screen and (min-width: 992px) {
  #textSlider.row {
    margin-right: 0px !important;
    margin-left: 0px !important;
  }
  .iamCol {
    text-align: center;
    font-size: 30pt;
    padding-left: 15px;
    margin-bottom: -15px;
  }
  .slideCol {
    font-size: 45pt;
    text-align: center;
    padding-left: 15px;
  }
}

/* ====== NAV BAR ====== */
nav {
  background-color: black;
  box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3);
  margin: 0;
  padding: 0;
}

nav ul {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  list-style: none;
  margin: 0;
  padding: 01rem;
}

nav li {
  height: 50px;
  display: flex;
  align-items: center;
}

nav a {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  text-decoration: none;
  color: white;
}

nav a:hover {
  color: grey;
}

nav a:visited {
  color: white;
}

nav li:first-child {
  margin-right: auto;
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
}

/* The dropdown container */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown button */
.dropdown .dropbtn {
  font-size: 16px;
  border: none;
  outline: none;
  color: white;
  padding: 14px 16px;
  background-color: inherit;
  font-family: inherit; /* Important for vertical align on mobile phones */
  font-size: inherit; /* Important for vertical align on mobile phones */
  margin: 0; /* Important for vertical align on mobile phones */
  cursor: pointer;
}

/* Dropdown caret icon */
.dropdown .dropbtn .fa-caret-down {
  margin-left: 5px;
  font-size: 14px;
}

/* Add a red background color to navbar links on hover */
.navbar a:hover,
.dropdown:hover .dropbtn {
  background-color: white;
  color: black;
}

/* Dropdown content (hidden by default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

/* Links inside the dropdown */
.dropdown-content a {
  float: none;
  color: black !important;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

/* Add a grey background color to dropdown links on hover */
.dropdown-content a:hover {
  background-color: #ddd;
  color: black !important;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
  display: block;
  color: black;
}

/* NAV BAR SIDEBAR */

.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 250px;
  z-index: 999;
  background-color: rgba(22, 22, 22, 0.4);
  backdrop-filter: blur(10px);
  /* box-shadow: -5px 0 5px rgba(0, 0, 0, 0.3); */
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.sidebar.active {
  transform: translateX(0);
}

.sidebar li {
  width: 100%;
}

.sidebar a {
  width: 100%;
  text-align: left;
  justify-content: flex-start;
  padding: 0 2.5rem;
}

/* Submenu items in sidebar */
.sidebar .submenu-item a {
  padding: 0 3.5rem;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
}

.sidebar .submenu-item a:hover {
  color: white;
}

/* Menu button - hidden by default, shown on mobile */
.menu-button {
  display: none;
}

/* Move close button to the top right corner */
.close-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: auto !important;
  z-index: 1001;
}

/* Add top spacing to first menu item to clear the close button */
.sidebar li:nth-child(2) {
  margin-top: 4rem;
}

/* Nav bar hides on screens less than 884px wide */
@media (max-width: 884px) {
  .hideOnMobile {
    display: none;
  }

  .menu-button {
    display: flex;
  }
}

/* Mobile nav styles */
@media (max-width: 400px) {
  .sidebar {
    width: 100%;
  }

  nav li:first-child {
    font-size: 2rem;
  }
}

/*  Footer  */
.footer {
  background-color: black;
  color: white;
  text-align: center;
  padding: 2rem 0;
  margin-top: 5rem;
}

.footer a {
  color: white;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .footer {
    font-size: 1rem;
  }
}
