@import url("https://www.nerdfonts.com/assets/css/webfont.css");

/* Base styles */
:root {
  --primary-color: #ffffff;
  --secondary-color: #707070;
  --accent-color: #b3935f;
  --background-color: #2c2c2c;
  --text-color: #333333;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: "Aspekta", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  height: 100%;
  overflow-x: hidden;
  position: fixed;
  width: 100%;
}

i {
  font-family: "NerdFont";
  font-style: normal;
}

h1,
h2,
h3 {
  font-family: "Manolo", Georgia, serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

h2,
h3 {
  color: var(--accent-color);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 1rem 0;
  z-index: 1000;
  transition: opacity 0.3s ease;
}

.header.hidden {
  opacity: 0;
  pointer-events: none;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  width: 100%;
  padding: 0 4rem 0 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: ease-in-out 250ms;
}

.logo:hover {
  opacity: 0.6;
}

.logo-svg {
  height: 4rem;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
}

.logo h1 {
  font-size: 1.5rem;
  color: var(--primary-color);
  letter-spacing: 2px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
}

.logo:hover .logo-link {
  color: var(--accent-color);
}

.nav-menu ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  text-decoration: none;
  color: var(--primary-color);
  font-size: 1rem;
  transition: ease-in-out 250ms;
}

.nav-menu a:hover {
  opacity: 0.6;
}

/* Navigation styles */
.mobile-nav-toggle {
  display: none; /* Hide by default on desktop */
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 1001;
  position: absolute;
  top: 1.5rem;
  right: 2rem;
}

.nav-menu {
  position: relative; /* Regular position for desktop */
  width: auto;
  height: auto;
  background: none;
  padding: 0;
  box-shadow: none;
}

.nav-menu ul {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  align-items: center;
}

/* Section styles */
section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  transition: transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1),
    position 0.3s ease, height 0.3s ease;
  will-change: transform;
}

/* Common section layout */
.hero-section,
.projects-section,
.about-section,
.approach-section,
.contact-section {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1),
    position 0.3s ease, height 0.3s ease;
}

/* Hero Section */
.hero-section {
  height: 100vh;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.background-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -1;
  object-fit: cover;
  filter: brightness(0.5);
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: -1;
}

.hero-content {
  position: relative;
  color: white;
  max-width: 800px;
  padding: 2rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-content h2 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
  text-align: center;
  width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  color: var(--primary-color);
}

.hero-content p {
  font-size: 1.5rem;
  opacity: 0.9;
}

/* Projects Section */
.projects-section {
  padding: 6rem 0;
  background: var(--background-color);
  color: var(--primary-color);
  overflow-y: auto;
  min-height: 100vh;
}

.projects-container {
  display: flex;
  gap: 1.5rem;
  padding: 1rem;
  max-width: 100%;
  width: calc(100% - 2rem);
  margin: 0 auto 4rem;
  min-height: fit-content;
  box-sizing: border-box;
  overflow-x: hidden;
  align-items: flex-start; /* Keep columns aligned at the top */
  position: relative; /* Establish positioning context */
  will-change: transform; /* Optimize for animations */
}

.project-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem; /* Gap between cards */
  min-height: fit-content;
  box-sizing: border-box;
  position: relative; /* For better position stability */
  will-change: opacity; /* Optimize performance */
  margin-bottom: 0;
  min-width: 0; /* Prevent flex items from overflowing */
  justify-content: flex-start; /* Align items at the top */
}

.project-card {
  position: relative;
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  max-width: 100%;
  overflow: hidden;
  transform: none !important; /* Prevent any transforms from misaligning cards */
  backface-visibility: hidden; /* Improve rendering */
  -webkit-font-smoothing: antialiased; /* Better text rendering */
  align-self: stretch; /* Ensure card uses full width of column */
  margin-bottom: 0; /* No bottom margin - we'll control spacing explicitly */
}

.project-image-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--background-color);
  height: 300px;
  max-width: 100%;
}

.project-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.project-location {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.project-card h3 {
  margin-top: 1rem;
  color: var(--primary-color);
  font-size: 1.2rem;
}

.project-description {
  color: var(--primary-color);
  opacity: 0.8;
  margin-top: 0.5rem;
}

/* Projects Grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 2rem auto;
}

/* Projects Page */
.projects-page {
  min-height: 100vh;
  overflow-y: auto;
  background: var(--background-color);
  scroll-timeline: --scroll block;
}

/* Override the fixed positioning for projects page */
html.projects-page,
html.projects-page body,
.project-page-body {
  position: static !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  height: auto !important;
  width: 100% !important;
  max-width: 100vw !important;
  min-height: 100%;
  padding: 0 !important;
  margin: 0 !important;
}

/* Special header styling for projects page */
.static-header {
  background-color: var(--background-color);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background-color 0.3s ease;
  padding: 1rem 0;
}

.static-header.scrolled {
  background-color: rgba(44, 44, 44, 0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.projects-page-content {
  padding: 6rem 0.5rem 6rem;
  min-height: 100vh;
  background: var(--background-color);
  position: relative;
  z-index: 1;
  overflow-x: hidden;
  width: 100%;
  box-sizing: border-box;
}

/* Featured Gallery */
.featured-gallery {
  width: 100%;
  overflow-x: auto;
  padding: 2rem 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  max-width: 100%;
  margin: 2rem auto 0;
  display: flex;
  justify-content: center;
}

.featured-gallery::-webkit-scrollbar {
  display: none;
}

.gallery-container {
  display: flex;
  gap: 2rem;
  padding: 0;
  margin: 0 auto;
  width: 100%;
  max-width: 1400px;
  justify-content: center;
}

.gallery-item {
  flex: 1;
  position: relative;
  overflow: hidden;
  max-width: calc((100% - 4rem) / 3);
  aspect-ratio: 3/4;
  height: auto;
  transition: transform 0.3s ease;
  border-radius: 8px;
}

.gallery-item:hover {
  transform: translateY(-5px);
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  padding: 1rem;
  color: white;
}

/* About Section */
.about-section {
  padding: 6rem 0;
  background: #f8f8f8;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}
.about-text {
  width: 80%;
  margin: 0 auto;
}

/* Team Gallery */
.team-gallery {
  width: 100%;
  padding: 0 2rem;
  max-width: 1200px;
  margin: 4rem auto 0;
  display: flex;
  justify-content: center;
}

.team-container {
  display: flex;
  gap: 2rem;
  margin: 0 auto;
  max-width: fit-content;
}

.team-member {
  flex: 1;
  position: relative;
  overflow: hidden;
  height: 400px;
  transition: flex 0.6s ease;
}

.team-member:hover {
  flex: 1.5;
}

.member-image {
  width: 350px;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.team-member:hover .member-image {
  transform: scale(1.1);
}

.member-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 2rem 1rem 1rem;
  color: white;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.team-member:hover .member-info {
  transform: translateY(0);
}

.member-name {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: white;
}

.member-title {
  color: var(--accent-color);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.member-bio {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

/* Approach Section */
.approach-section {
  padding: 6rem 0;
  background: var(--background-color);
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.approach-item {
  text-align: center;
  padding: 2rem;
  background: #f8f8f8;
  transition: transform 0.3s ease;
}

.approach-item:hover {
  transform: translateY(-5px);
}

/* Contact Section */
.contact-section {
  padding: 6rem 0;
  background: var(--background-color);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--background-color);
  backdrop-filter: blur(50px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 6rem !important;
  overflow-y: auto !important;
}

.contact-content {
  max-width: 600px;
  margin: 3rem auto 0;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.contact-form-container {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Form status messages */
.form-status {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 4px;
  display: none;
  text-align: center;
  font-weight: 500;
}

.form-status.sending {
  background-color: #e7f3ff;
  color: #0056b3;
}

.form-status.success {
  background-color: #d4edda;
  color: #155724;
}

.form-status.error {
  background-color: #f8d7da;
  color: #721c24;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

input,
textarea,
select {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: var(--primary-color);
  font-family: inherit;
  font-size: 1rem;
}

input:hover,
textarea:hover {
  box-shadow: 0 0 3px var(--primary-color);
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
}

select option {
  background: var(--background-color);
  color: var(--primary-color);
}

label {
  color: var(--primary-color);
}

label > span {
  color: var(--accent-color);
}

.submit-btn {
  background: var(--accent-color);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.submit-btn:hover {
  background: transparent;
  box-shadow: 0 0 3px var(--primary-color);
}

.contact-map-container {
  position: relative;
  height: 100%;
  min-height: 400px;
  border-radius: 8px;
  overflow: hidden;
}

#map {
  width: 100%;
  height: 100%;
  background: var(--background-color);
}

.location-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.8);
  padding: 1.5rem;
  color: var(--primary-color);
}

.location-info h3 {
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.contact-section .container {
  margin-bottom: auto;
  padding-bottom: 2rem;
}

#contact {
  min-height: 100vh;
}

hr {
  border: none;
  border-top: 1px solid var(--accent-color);
  margin: 2rem 0;
}

/* Footer */
.footer {
  background: var(--background-color);
  color: var(--primary-color);
  padding: 2rem 0;
  margin-top: 3rem;
  text-align: center;
  z-index: 10;
  position: relative;
  width: 100%;
  clear: both;
}

.footer-content > div {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center;
}

footer a {
  text-decoration: none;
  color: var(--primary-color);
  transition: ease-in-out 250ms;
}

footer a:hover {
  opacity: 0.6;
}

/* Projects "View All" Button */
.view-projects-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  padding-bottom: 2rem;
}

.view-all-projects {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--accent-color);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.view-all-projects:hover {
  background: #9a7d4e;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Row Animations - Modified to use opacity instead of transforms, and appear sooner */
@media (min-width: 801px) {
  /* Only apply animations on desktop */
  .project-column:nth-child(1) .project-card:nth-child(2) {
    animation: fadeIn 0.5s cubic-bezier(0.2, 0, 0, 1) both;
    animation-timeline: --scroll;
    animation-range: entry 25% cover 45%;
  }

  .project-column:nth-child(2) .project-card:nth-child(2) {
    animation: fadeIn 0.5s cubic-bezier(0.2, 0, 0, 1) both;
    animation-timeline: --scroll;
    animation-range: entry 30% cover 50%;
  }

  .project-column:nth-child(3) .project-card:nth-child(2) {
    animation: fadeIn 0.5s cubic-bezier(0.2, 0, 0, 1) both;
    animation-timeline: --scroll;
    animation-range: entry 35% cover 55%;
  }
}

/* Make all cards visible by default on mobile */
@media (max-width: 800px) {
  .project-card {
    opacity: 1 !important;
    transform: none !important;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Scroll Arrow */
.scroll-arrow {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
  animation: float 2s ease-in-out infinite;
  z-index: 2;
}

.scroll-arrow span {
  display: block;
  width: 30px;
  height: 30px;
  border-bottom: 3px solid var(--primary-color);
  border-right: 3px solid var(--primary-color);
  transform: rotate(45deg);
}

@keyframes float {
  0% {
    transform: translateY(-10px) translateX(-50%);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  65% {
    opacity: 0;
  }
  100% {
    transform: translateY(0) translateX(-50%);
    opacity: 0;
  }
}

/* Responsive Design */
@media (max-width: 1200px) {
  .project-grid {
    columns: 2;
  }

  .projects-container {
    flex-direction: column;
    padding: 1rem;
    max-width: 100%;
    align-items: center;
  }

  .project-column {
    width: 100%;
    padding: 0;
    margin-right: 0;
    align-items: center;
    max-width: 650px; /* Prevent overly wide cards on tablet */
  }

  .project-image-container {
    height: auto;
    max-height: 350px;
  }
}

/* Mobile Navigation */
@media (max-width: 800px) {
  /* General layout for mobile */
  body {
    overflow: visible;
    position: static;
    height: auto;
  }

  section:not(.hero-section) {
    position: relative;
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
    transform: none !important;
    transition: transform 0.3s ease, position 0.3s ease, height 0.3s ease;
  }

  .header {
    position: fixed !important;
    opacity: 1 !important;
    pointer-events: all !important;
    padding: 0.5rem 0;
  }

  .projects-section,
  .about-section,
  .approach-section,
  .contact-section {
    top: auto;
  }

  .contact-section {
    padding-bottom: 80px;
  }

  /* Navigation styles */
  .nav-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0.5rem 1rem;
    gap: 1rem;
    width: 100%;
  }

  /* Logo and toggle alignment */
  .logo {
    flex: 0 1 auto;
    padding: 0.5rem 0;
    position: relative;
    z-index: 1000;
  }

  .logo-svg {
    height: 3rem;
  }

  .mobile-nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
    margin-left: 1rem;
    position: relative;
    right: 1rem;
    transform: translateY(-50%);
  }

  /* Mobile menu */
  .nav-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: var(--background-color);
    padding: 5rem 2rem 2rem;
    transition: right 0.3s ease;
    z-index: 1000;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }

  .nav-menu.active {
    display: block;
    right: 0;
  }

  .nav-menu ul {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu a {
    display: block;
    padding: 1rem 0;
    font-size: 1.2rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.3s ease;
  }

  .nav-menu a:hover {
    color: var(--accent-color);
  }

  /* Mobile nav toggle animation */
  .mobile-nav-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .mobile-nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-nav-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  /* Content adjustments */
  .hero-content h2 {
    font-size: 2.5rem;
    white-space: normal;
  }

  .hero-content p {
    font-size: 1.2rem;
  }

  /* Gallery adjustments */
  .gallery-container {
    flex-direction: column;
    padding: 0 1rem;
  }

  .gallery-item {
    max-width: 100%;
    height: 300px;
    aspect-ratio: auto;
  }

  .gallery-item:hover {
    flex: 1;
  }
  .gallery-item:hover {
    transform: translateY(0);
    transform: scaleY(1.02) scaleX(1.02);
  }

  .gallery-overlay {
    transform: translateY(0);
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  }

  /* Team layout */
  .team-container {
    flex-direction: column;
    width: 100%;
  }

  .team-member {
    width: 100%;
    height: auto;
    min-height: 300px;
  }

  .member-image {
    width: 100%;
  }

  .member-info {
    transform: translateY(0);
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  }

  /* Contact form */
  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .contact-map-container {
    min-height: 300px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer {
    position: relative;
    margin-top: 2rem;
  }

  .footer-content > div {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 640px) {
  .project-grid {
    columns: 1;
  }
}

@media (max-width: 480px) {
  /* Header refinements */
  .logo h1 {
    font-size: 1.2rem;
  }

  .nav-menu ul {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .hero-content h2 {
    font-size: 2rem;
  }

  /* Section padding adjustments */
  .projects-section,
  .about-section,
  .approach-section,
  .contact-section {
    padding: 3rem 0;
  }

  /* Approach section grid */
  .approach-grid {
    grid-template-columns: 1fr;
  }

  /* Form elements */
  input,
  textarea,
  select {
    padding: 0.8rem;
  }

  /* Container padding */
  .container {
    padding: 0 1rem;
  }
}
/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--accent-color);
  color: white;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: #9a7d4e;
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.back-to-top i {
  font-size: 1.2rem;
}

/* Fallback arrow if icon fonts aren't loaded */
.back-to-top::before {
  content: "↑";
  font-size: 1.5rem;
  line-height: 0;
}

.back-to-top i + .back-to-top::before {
  display: none;
}

/* Mobile nav toggle button */
.mobile-nav-toggle {
  display: none;
}

.mobile-nav-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
}

@media (max-width: 800px) {
  .mobile-nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
    position: absolute;
    top: 50%;
    right: 2rem;
  }

  /* Mobile nav toggle animation */
  .mobile-nav-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .mobile-nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-nav-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}
