@font-face {
  font-family: "fs-eb";
  src: url("../fonts/FiraSans-ExtraBold.ttf");
}
@font-face {
  font-family: "fs-b";
  src: url("../fonts/FiraSans-Bold.ttf");
}
@font-face {
  font-family: "ese-r";
  src: url("../fonts/EncodeSans_Expanded-Regular.ttf");
}
:root {
  --text-color: #fff;
  --bg-color: lch(11.55% 4.03 263.99);
  --bg-color2: #222822;
  --main-color: #13bbff;
  --main-color2: #c3cad5;
  --theGray: #888888;
  --theRed: #da2128;
  --Black0: #121212;
  --Black1: #282828;
  --Black2: #3f3f3f;
  --Black3: #575757;
  --Black4: #717171;
  --Black5: #909090;
  --Red0: #03071e;
  --Red1: #370617;
  --Red2: #6a040f;
  --Red3: #9d0208;
  --Red4: #d00000;
  --Red5: #dc2f02;
  --h1-font: 4.5rem;
  --h2-font: 2.9rem;
  --p-font: 1rem;
  --border: red;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  list-style: none;
  font-family: "Light";
  text-decoration: none;
  transition-property: color, background-color, border-color, fill, stroke;
  transition-duration: 0.5s;
  transition-timing-function: ease;
}

body {
  color: var(--text-color);
  background: black;
  background-image: url("/img/backred6.png");
  background-size: cover;
  background-repeat: no-repeat;
}

body.dark-mode {
  background-image: url("/img/backwhite6.png");
  transition: background-image 0.3s ease-in-out;
}

a,
a:hover,
a:visited,
a:active {
  color: inherit;
  text-decoration: none;
}

.fa-paintbrush {
  color: red;
}

header {
  padding-top: 2vw;
  padding-bottom: 2vw;
  margin: 0 auto;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  background: linear-gradient(-45deg, #9d0208, #6a040f, #370617, #03071e);
  background-size: 200% 200%;
  animation: gradient 15s ease infinite;
  position: sticky;
  top: 0;
}

body.dark-mode header {
  background: linear-gradient(-45deg, #90afc2, #99b6c8, #baceda, #fcf8e1);
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.header__logo {
  grid-area: 1/1/3/2;
  width: 100%;
  max-width: 320px;
  padding-top: 3vw;
  padding-bottom: 3vw;
}

.header__nav {
  grid-area: 1/2/2/3;
  align-items: center;
  justify-content: center;
  display: flex;
}

.header__nav a {
  font-size: clamp(10px, 2.5vw, 24px);
  font-family: "ese-r";
  color: var(--Black5);
  margin-left: clamp(5px, 0.75vw, 10px);
  margin-right: clamp(5px, 0.75vw, 10px);
  transition: all 0.5s ease;
}

body.dark-mode .header__nav a {
  color: black;
}

.header__nav a:hover {
  color: white;
}

#print {
  scroll-margin-top: 19vh;
}

#social {
  scroll-margin-top: 19vh;
}

#web {
  scroll-margin-top: 27vh;
}

#large {
  scroll-margin-top: 19vh;
}

#motion {
  scroll-margin-top: 19vh;
}

.nav-text {
  margin-left: clamp(5px, 0.75vw, 10px);
  margin-right: clamp(5px, 0.75vw, 10px);
}

#menu-icon {
  cursor: pointer;
  display: none;
}

.top-button {
  display: flex;
  justify-content: center;
}

.h-button {
  display: inline-flex;
  justify-content: center;
  padding: 2px 13px;
  background: transparent;
  color: white;
  border: 2px solid white;
  align-self: center;
  border-radius: 8px;
  font-size: 1.75vw;
  transition: all 0.5s ease;
}

.heading__sub {
  padding-top: 0;
  margin-top: -4vw;
}

.header__title {
  padding-top: clamp(10px, 2vw, 36px);
  position: relative;
  color: var(--Red3);
  text-shadow: 0.5vw 0.5vw 0.5vw rgba(0, 0, 0, 0.25), -0.1vw -0.1vw 0.1vw rgba(253, 185, 46, 0.5);
  z-index: 25;
}

body.dark-mode .header__title {
  color: #47708e;
  text-shadow: 0.5vw 0.5vw 0.5vw rgba(0, 0, 0, 0), -0.1vw -0.1vw 0.1vw #47708e;
}

.header__container {
  position: relative;
}

.header__randall {
  position: absolute;
  letter-spacing: 1vw;
  bottom: 82px;
  left: 45vw;
  font-family: "Light";
  z-index: 100;
}

.projects {
  background: transparent;
  width: calc(100% - 200px);
  margin: 0 auto;
  margin-top: clamp(10px, 5vw, 30px);
  margin-top: 2vw;
}

.projects__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: center;
  gap: 2rem;
  margin-top: 1.4vw;
}

.projects__row {
  overflow: hidden;
  /* Ensures content inside respects the rounded corners */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* Smooth transition for hover effects */
}

.projects__row:hover {
  transform: translateY(-5px);
  /* Optional: slight lift effect on hover */
  transform: scale(1.1);
  /* Optional: slight lift effect on hover */
}

.projects__row img {
  display: block;
  width: 100%;
  aspect-ratio: 16/16;
  background: rgba(0, 0, 0, 0.35);
  -o-object-fit: contain;
     object-fit: contain;
  border-radius: 1vw;
}

body.dark-mode .projects__row img {
  background: rgba(255, 255, 255, 0.4);
  /* white with 50% opacity */
}

.projects__row--web img {
  max-width: 100%;
  aspect-ratio: 16/10;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 1vw;
}

.projects__row--web:hover {
  transform: translateY(-5px);
  /* Optional: slight lift effect on hover */
  transform: scale(1.1);
  transition: all 0.5s ease;
  /* Optional: slight lift effect on hover */
}

.projects__row-icon {
  display: flex;
  align-items: center;
}

.projects__row video {
  max-width: 100%;
  aspect-ratio: 16/9;
  -o-object-fit: cover;
     object-fit: cover;
}

.projects__row-text--1 {
  display: flex;
  width: 4vw;
}

.projects__title {
  color: white;
  font-size: clamp(16px, 2.5vw, 24px);
  font-family: "Bold";
  display: inline-block;
}

.projects__bold {
  color: red;
  font-family: "Bold";
}

body.dark-mode .projects__title {
  color: var(--text-color);
}

body.dark-mode h2 {
  color: #444;
}

body.dark-mode h3 {
  color: black;
}

body.dark-mode p {
  color: black;
}

.services {
  margin: 0 auto;
  padding-top: clamp(10px, 4vw, 30px);
  width: calc(100% - 200px);
}

.services__content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
  margin-top: 0.8rem;
  align-items: stretch;
}

.services__center-text {
  text-align: center;
  margin-top: 2vw;
}

h2 {
  line-height: 1.25;
}

.services__box {
  padding: 20px 20px 0px;
  padding-left: clamp(10px, 2vw, 20px);
  padding-right: clamp(10px, 2vw, 20px);
  padding-top: clamp(10px, 2vw, 20px);
  margin-bottom: clamp(10px, 8vw, 20px);
  background: #2d343f;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: all 0.5s ease;
  cursor: pointer;
}

body.dark-mode .services__box {
  background: white;
}

.services__box img {
  width: clamp(10px, 6vw, 48px);
  margin-bottom: 30vw;
  margin: 0 auto;
}

.services__box h3 {
  font-family: "Bold";
  font-size: clamp(10px, 3vw, 24px);
  margin-top: 0.5vw;
  margin-bottom: 0.5vw;
  display: inline-block;
}

.services__box p {
  font-size: clamp(10px, 1.5vw, 16px);
}

.services__box a {
  display: inline-block;
  font-size: clamp(10px, 2.5vw, 26px);
  padding: 7px 0;
  font-family: "Bold";
  color: red;
  line-height: 1.273em;
  transition: all 0.5s ease;
}

.services__box a:hover {
  color: white;
}

.phone {
  font-size: clamp(20px, 2.5vw, 30px);
}

/* STYLES FOR THE LARGE IMAGE DISPLAY PAGES (1.html, 2.html, etc.) */
.main-image-container {
  position: relative;
  width: 80%; /* Makes the container not touch the screen edges */
  max-width: 1400px; /* Prevents it from getting too wide on large screens */
  margin: 5vh auto; /* Adds space on top/bottom and centers it horizontally */
  overflow: hidden;
}

.main-portfolio-image {
  display: block;
  width: 100%; /* Makes the image fill the container's width */
  height: 90vh; /* Sets the height to 90% of the viewport height */
  -o-object-fit: contain;
     object-fit: contain; /* This is the magic property: it scales the image to fit
   entirely within the box while maintaining its aspect ratio. */
}

/* This is the style for the 'X' close button */
.close-image {
  position: absolute;
  top: 15px;
  right: 15px;
  color: white;
  font-size: 30px;
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  padding: 5px 10px;
  transition: background-color 0.3s ease;
}

.close-image:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

@media (width >= 868px) {
  .services__content {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (width <= 700px) {
  .projects {
    width: calc(100% - 40px);
  }
  .projects__content {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
  }
}
.lightdark {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: end;
  justify-content: center;
  position: fixed;
  top: 1rem;
  right: 2vw;
  z-index: 2000;
  caret-color: transparent;
}

label {
  width: 6vw;
  height: 3vw;
  position: relative;
  display: block;
  background: #ebebeb;
  border-radius: 3vw;
  box-shadow: inset 0px 5px 15px rgba(0, 0, 0, 0.4), inset 0px -5px 15px rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: 0.3s;
}

label:after {
  content: "";
  width: 2.6vw;
  height: 2.6vw;
  position: absolute;
  top: 0.25vw;
  left: 0.3vw;
  background: linear-gradient(180deg, darkred, red);
  border-radius: 50%;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.25);
  transition: 0.3s;
}

input {
  width: 0;
  height: 0;
  visibility: hidden;
}

input:checked + label {
  background: #242424;
}

input:checked + label:after {
  left: 5.38vw;
  transform: translateX(-100%);
  background: linear-gradient(180deg, #ffcc89, #d8850b);
}

label:active:after {
  width: 3vw;
}

#scrollToTopBtn {
  /* Positioning and Visibility (Same as before) */
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
  cursor: pointer;
  /* === NEW STYLES FOR BACKGROUND IMAGE === */
  /* Give the empty <a> tag a size */
  display: block;
  width: 50px;
  height: 50px;
  /* Set the DEFAULT (Light Mode) arrow image */
  background-image: url("../img/white-up.png");
  /* Make the background image fit perfectly */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* This rule for showing the button remains the same */
#scrollToTopBtn.show {
  opacity: 1;
  visibility: visible;
}

/*
  NEW RULE FOR DARK MODE:
  When the body has the 'dark-mode' class, this rule will override the default.
*/
body.dark-mode #scrollToTopBtn {
  /* Set the DARK MODE arrow image */
  background-image: url("../img/blue-up.png");
}

/* Add this media query to the end of your CSS file */
@media (max-width: 768px) {
  .lightdark {
    top: 0.75rem;
    /* Use a fixed unit for positioning */
    right: 0.75rem;
    /* Use a fixed unit for positioning */
  }
  label {
    width: 40px;
    /* Fixed width */
    height: 20px;
    /* Fixed height */
    border-radius: 30px;
  }
  label:after {
    width: 17.33px;
    /* Fixed width for the toggle handle */
    height: 17.33px;
    /* Fixed height for the toggle handle */
    top: 1.3px;
    left: 1.3px;
  }
  input:checked + label:after {
    left: 21.33px;
    /* New position for the "checked" state */
    transform: translateX(0);
    /* Reset any previous transforms if they exist */
  }
  .header__title {
    letter-spacing: -1px;
    font-size: 9vw;
  }
}/*# sourceMappingURL=index.css.map */