@font-face {
  font-family: 'sans-r';
  src: url(./font/ProductSansRegular.ttf);
}

@font-face {
  font-family: 'sans-b';
  src: url(./font/ProductSansBold.ttf);
}

@font-face {
  font-family: 'magneto-b';
  src: url(./font/magneto_bold.ttf);
}

/* CSS Variables */
:root {
  --bg-color: #080808;
  --text-color: #fdfdfd;
  --primary-red: #cd1d20;
  --accent-orange: #ff4d00;
  --accent-gold: #c48954;
  --accent-light-orange: #ef974a;
  --card-bg: #111111;
  --form-bg: #262626;
  --placeholder-color: #8b8b8b;
}

/* General settings */
* {
  margin: 0;
  padding: 0;
  font-family: 'sans-r';
  box-sizing: border-box;
  letter-spacing: 0.4px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-color);
  color: var(--text-color);
  overflow-x: hidden;
}

/* Header */
#header {
  width: 100%;
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  position: fixed;
  top: 0;
  width: 100%;
  padding: 10px 10%;
  margin: 0;
  z-index: 1000;
  transition: background-color 0.3s;
}

nav.scrolled {
  background-color: var(--bg-color);
}

nav ul li {
  display: inline-block;
  list-style: none;
  margin: 0 20px;
}

nav ul li a {
  text-decoration: none;
  color: var(--text-color);
  font-size: 16px;
  position: relative;
  font-family: 'sans-b';
}

nav ul li a::after {
  content: '';
  width: 0;
  height: 3px;
  background: var(--primary-red);
  position: absolute;
  left: 0;
  bottom: -6px;
  transition: 0.3s;
}

nav ul li a:hover::after {
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  width: 120px;
  height: 79px;
}

.container {
  padding: 10px 10%;
}

.header-text {
  margin-top: 18%;
  font-size: 30px;
}

.header-text p {
  font-size: 15px;
  margin-top: 30px;
  line-height: 1.7;
}

.header-text h1 {
  font-size: 70px;
  margin-top: 30px;
}

.header-text span {
  color: var(--primary-red);
}

/* Projects Section */
.header-li-titles {
  font-size: 50px;
  margin-bottom: 20px;
  font-family: 'sans-b';
  color: rgba(205, 29, 32, 0.7);
  /* Using primary red alpha */
}

#projects {
  padding: 90px 0 0 0;
}

.project-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  grid-gap: 40px;
  margin-top: 50px;
}

.work {
  border-radius: 40px;
  position: relative;
  overflow: hidden;
}

.work img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  display: block;
  transition: transform 0.6s;
}

.layer {
  width: 100%;
  height: 0;
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(205, 29, 32, 0.8));
  border-radius: 10px;
  position: absolute;
  left: 0;
  bottom: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0 40px;
  text-align: center;
  font-size: 16px;
  transition: height 0.5s;
}

.layer h3 {
  font-weight: 500;
  margin-bottom: 20px;
}

.layer a {
  margin-top: 20px;
  color: var(--primary-red);
  text-decoration: none;
  font-size: 18px;
  line-height: 50px;
  width: 50px;
  height: 50px;
  background-color: var(--text-color);
  border-radius: 50px;
  text-align: center;
}

.work:hover img {
  transform: scale(1.05);
}

.work:hover .layer {
  height: 100%;
}

.btn {
  color: var(--bg-color);
  background: var(--primary-red);
  display: block;
  margin: 50px auto;
  width: fit-content;
  border: 3px solid var(--primary-red);
  padding: 14px 50px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.5s;
}

.btn:hover {
  color: var(--text-color);
  background: var(--bg-color);
}

/* Contact Section */
#contact {
  padding: 0px 0 0 0;
}

.contact-left {
  flex-basis: 39%;
}

.contact-left p {
  margin-top: 20px;
}

.contact-left p a {
  text-decoration: none;
  color: var(--text-color);
}

.fa-envelope,
.fa-phone,
.fa-globe {
  font-size: 13px;
  width: 25px;
  height: 25px;
  border-radius: 30px;
  padding-top: 6px;
  text-align: center;
  color: #080808;
  background-color: var(--primary-red);
}

.fa-globe:hover,
.fa-envelope:hover,
.fa-phone:hover {
  color: var(--text-color);
}

.social-icons {
  margin-top: 30px;
}

.social-icons a {
  text-decoration: none;
  font-size: 20px;
  margin: 20px 20px 20px 0px;
  color: var(--primary-red);
  display: inline-block;
  line-height: 50px;
  width: 50px;
  height: 50px;
  border-radius: 50px;
  align-items: center;
  text-align: center;
  background-color: var(--text-color);
  transition: transform 0.2s;
}

.social-icons a:hover {
  color: var(--text-color);
  background-color: var(--primary-red);
  transform: translateY(-5px);
}

.btn.btn2 {
  display: inline-block;
  background: var(--primary-red);
}

.contact-right {
  flex-basis: 60%;
}

.contact-right form {
  width: 100%;
}

form input,
form textarea {
  width: 100%;
  border: 0;
  border-radius: 30px;
  outline: none;
  background: var(--form-bg);
  padding: 15px;
  margin: 15px 0;
  color: var(--text-color);
  font-size: 15px;
}

form input::placeholder,
form textarea::placeholder {
  color: var(--placeholder-color);
}

form .btn2 {
  font-size: 16px;
  margin: 32px 0px;
}

hr {
  margin: 0px 10%;
  height: 1px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(to right, #ff000000, #ff000025 50%, #ff000000);
}

/* Footer */
#footer {
  margin-top: auto;
}

#footer .container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  height: 100px;
  background-color: #0f0d0d17;
}

.footer-greetings {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-basis: 40%;
}

.footer-logo {
  flex-basis: 20%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo img {
  height: 40px;
  width: 40px;
  transition: transform 0.5s;
}

.footer-logo img:hover {
  transform: scale(1.5);
}

.footer-copyright {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex-basis: 40%;
}

.copyright-alert {
  color: #fff;
  text-decoration: none;
}

.copyright-alert:hover {
  color: var(--primary-red);
}

.footer-copyright .fa-copyright {
  font-size: 13px;
}

.footer-copyright .fa-trademark {
  font-size: 5px;
}

/* top scroller */
#scrollToTop {
  text-decoration: none;
  display: inline-block;
  position: fixed;
  width: 50px;
  height: 50px;
  bottom: 25px;
  right: 25px;
  background-color: var(--primary-red);
  color: var(--text-color);
  border-radius: 50%;
  padding: 10px;
  text-align: center;
  align-items: center;
  font-size: 25px;
  z-index: 1000;
  cursor: pointer;
  transition: opacity 0.7s ease, visibility 0.7s ease;
  opacity: 0;
  visibility: hidden;
}

#scrollToTop.visible {
  opacity: 1;
  visibility: visible;
}

#scrollToTop:hover {
  background-color: var(--primary-red);
  color: #0a0a0a;
}

nav .fa-solid

/*.fa-xmark, nav .fa-bars */
  {
  display: none;
}

/* Responiveness for mobile screens */
@media only screen and (max-width: 600px) {
  .logo {
    margin-top: 5px;
  }

  #header {
    background-size: cover;
  }

  .header-text {
    margin-top: 70%;
    font-size: 30px;
  }

  .header-text h1 {
    font-size: 40px;
  }

  .header-text span {
    color: #cd1d20;
  }

  .header-text p {
    font-size: 15px;
    margin-top: 30px;
    line-height: 1.7;
  }

  .logo {
    display: flex;
    align-items: center;
    width: 100px;
    height: 66px;
  }

  nav .fa-solid {
    display: block;
  }

  nav ul {
    background: #cd1d20;
    position: fixed;
    top: 0;
    right: -250px;
    width: 250px;
    height: 100vh;
    padding-top: 50px;
    z-index: 2;
    transition: right 0.5s;
  }

  nav ul li {
    display: block;
    margin: 25px;
  }

  nav ul .fa-solid {
    position: absolute;
    top: 25px;
    left: 25px;
    cursor: pointer;
  }

  .header-li-titles {
    text-align: center;
    font-size: 50px;
  }

  .about-column-1,
  .about-column-2 {
    flex-basis: 100%;
  }

  .about-column-1 {
    margin-bottom: 40px;
  }

  .about-column-2 {
    font-size: 14px;
  }

  .about-column-2 p {
    line-height: 1.7;
    text-align: justify;
  }

  .about-subtabs-links {
    font-size: 16px;
    margin-right: 40px;
  }

  #contact {
    padding: 80px 0;
    padding-top: 80px;
  }

  .contact-left,
  .contact-right {
    flex-basis: 100%;
  }

  .social-icons a {
    margin: 20px 40px 20px 0px;
    display: inline-flexbox;
  }

  .btn.btn2 {
    margin-bottom: -20px;
  }

  #footer .container {
    height: 200px;
  }

  .footer-greetings {
    flex-basis: 100%;
    margin: 0px 0 10px 0;
  }

  .footer-logo {
    flex-basis: 100%;
    margin: 10px;
  }

  .footer-copyright {
    flex-basis: 100%;
    margin: 0px 0 10px 0;
    color: #ffffff7d;
  }

  .copyright-alert {
    color: var(--primary-red);
    text-decoration: none;
  }
}

@media only screen and (min-width: 600px) and (max-width: 730px) {
  #header {
    background-size: cover;
  }

  .header-text {
    margin-top: 42%;
    font-size: 30px;
  }

  .header-text h1 {
    font-size: 40px;
  }

  .header-li-titles {
    text-align: center;
    font-size: 50px;
  }

  .about-column-2 p {
    line-height: 1.7;
    text-align: left;
  }

  #contact {
    padding: 80px 0;
    padding-top: 80px;
  }

  .contact-left,
  .contact-right {
    flex-basis: 100%;
  }

  .btn.btn2 {
    margin-bottom: -20px;
  }

  #footer .container {
    height: 200px;
  }

  .footer-greetings {
    flex-basis: 100%;
    margin: 0px 0 10px 0;
  }

  .footer-logo {
    flex-basis: 100%;
    margin: 10px;
  }

  .footer-copyright {
    flex-basis: 100%;
    margin: 0px 0 10px 0;
    color: #ffffff7d;
  }

  .copyright-alert {
    color: var(--primary-red);
    text-decoration: none;
  }
}

@media only screen and (min-width: 600px) and (max-width: 781px) {
  #header {
    background-size: cover;
  }

  .header-text {
    margin-top: 42%;
  }

  .header-text h1 {
    font-size: 45px;
  }

  .header-li-titles {
    text-align: center;
    font-size: 50px;
  }

  nav .fa-solid {
    display: block;
  }

  nav ul {
    background: #cd1d20;
    position: fixed;
    top: 0;
    right: -250px;
    width: 250px;
    height: 100vh;
    padding-top: 50px;
    z-index: 2;
    transition: right 0.5s;
  }

  nav ul li {
    display: block;
    margin: 25px;
  }

  nav ul .fa-solid {
    position: absolute;
    top: 25px;
    left: 25px;
    cursor: pointer;
  }

  .about-column-1,
  .about-column-2 {
    flex-basis: 100%;
  }

  .about-column-1 {
    margin-bottom: 40px;
  }

  .about-column-2 {
    font-size: 14px;
  }

  .about-column-2 p {
    line-height: 1.7;
    text-align: justify;
  }

  .about-subtabs-links {
    font-size: 16px;
    margin-right: 40px;
  }

  #contact {
    padding: 80px 0;
    padding-top: 80px;
  }

  .contact-left,
  .contact-right {
    flex-basis: 100%;
  }

  .btn.btn2 {
    margin-bottom: -20px;
  }

  #footer .container {
    height: 200px;
  }

  .footer-greetings {
    flex-basis: 100%;
    margin: 0px 0 10px 0;
  }

  .footer-logo {
    flex-basis: 100%;
    margin: 10px;
  }

  .footer-copyright {
    flex-basis: 100%;
    margin: 0px 0 10px 0;
  }

  .copyright-alert {
    color: var(--primary-red);
    text-decoration: none;
  }
}

@media only screen and (min-width: 777px) and (max-width: 885px) {
  #header {
    background-size: cover;
  }

  .header-text h1 {
    font-size: 50px;
  }

  .header-text {
    margin-top: 42%;
  }

  nav .fa-solid {
    display: block;
  }

  nav ul {
    background: #cd1d20;
    position: fixed;
    top: 0;
    right: -250px;
    width: 250px;
    height: 100vh;
    padding-top: 50px;
    z-index: 2;
    transition: right 0.5s;
  }

  nav ul li {
    display: block;
    margin: 25px;
  }

  nav ul .fa-solid {
    position: absolute;
    top: 25px;
    left: 25px;
    cursor: pointer;
  }
}

@media only screen and (min-width:781px) and (max-width: 910px) {
  .footer-greetings {
    flex-basis: 35%;
    margin: 0px 0 10px 0;
    font-size: 13px;
  }

  .footer-logo {
    flex-basis: 20%;
    margin: 10px;
  }

  .footer-copyright {
    flex-basis: 35%;
    margin: 0px 0 10px 0;
    font-size: 12px;
    text-align: right;
  }
}

@media only screen and (min-width: 777px) and (max-width: 1180px) {
  .header-text {
    margin-top: 25%;
  }

  .header-text h1 {
    font-size: 60px;
  }
}

@media only screen and (max-width: 1338px) {
  .btn {
    margin: 50px auto;
  }
}

/* Custom Context Menu Styles */
#custom-context-menu {
  position: absolute;
  display: none;
  background: #0e0e0e;
  color: #c48954;
  border-radius: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

#custom-context-menu ul {
  list-style: none;
  margin: 0;
  padding: 0px 0;
}

#custom-context-menu ul li {
  padding: 8px 20px;
  cursor: pointer;
  border-top-left-radius: 15px 15px;
  border-top-right-radius: 15px 15px;
  border-bottom-left-radius: 15px 15px;
  border-bottom-right-radius: 15px 15px;
}

#custom-context-menu ul li:hover {
  background: #ff0000;
}