html,
body {
  font-family: Quicksand, sans-serif;
  transition: background-color 0.4s ease, color 0.4s ease;
}

h1,
h2,
p,
span,
.title,
.subtitle,
.content {
  transition: color 0.4s ease;
}

.title.is-2 {
  color:000;
}

.left {
  padding: 7%;
  position: relative;
}

.theme-toggle-btn {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  animation-name: slide-down;
  animation-duration: 1s;
  animation-delay: 50ms;
  animation-fill-mode: both;
}

.theme-toggle-btn:hover {
  text-decoration: none !important;
}

.right {
  background-image: url('../media/background.webp');
  background-position: center;
  background-size: cover;
  height: 400px;
  position: relative;
  width: 100%;
}

@media (width >=769px) {
  .right {
    height: 100vh;
    position: sticky;
    top: 0;
  }
}

@media only screen and (max-width: 768px) {
  .columns {
    display: flex;
    flex-direction: column-reverse; /* Reverses order */
  }
  
  .column {
      flex-basis:auto;
  }
}



/* Mobile view (swapped stacking order) */
@media (max-width: 768px) {
  .columns {
    flex-direction: column; /* Stacks columns vertically */
    columns
  }

  .left {
    order: 2; /* Moves to the bottom on mobile */
  }

  .right {
    order: 1; /* Moves to the top on mobile */
  }
}



.hr {
  background-color: #ff470f;
  border: none;
  content: '';
  height: 1px;
  margin-bottom: 1.5rem;
  margin-top: 1.5rem;
  transform-origin: center left;
  width: 4rem;
  animation-name: fill-up;
  animation-delay: 300ms;
}

.name,
.hr,
.job,
.description {
  animation-duration: 1s;
  animation-timing-function: cubic-bezier(0, 0.5, 0, 1);
  animation-fill-mode: both;
}

.job,
.text {
  animation-name: slide-up;
  animation-duration: 1s;
  animation-fill-mode: both;
}

.button {
  animation-name: slide-up;
  animation-duration: 500ms;
  animation-timing-function: cubic-bezier(0.5, 0, 0.5, 1.5);
  animation-fill-mode: both;
}

.social-button {
  min-height: 48px;
  min-width: 48px;
}

@keyframes slide-down {
  from {
    opacity: 0;
    transform: translateY(-1rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fill-up {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

.name {
  animation-name: slide-down;
  animation-delay: 100ms;
}

.job {
  animation-name: slide-up;
  animation-delay: 200ms;
}

.text {
  animation-name: slide-up;
  color:#000;
  font-size: 1.2em;
}

.text:nth-child(1) {
  animation-delay: 450ms;
}

.text:nth-child(2) {
  animation-delay: 550ms;
}

.text:nth-child(3) {
  animation-delay: 650ms;
}

.button:nth-child(1) {
  animation-delay: 900ms;
}

.button:nth-child(2) {
  animation-delay: 1s;
}

.button:nth-child(3) {
  animation-delay: 1.1s;
}

.button:nth-child(4) {
  animation-delay: 1.2s;
}

#theme-icon.fa-moon {
  color: #000;
}

#theme-icon.fa-sun {
  color: #ffa500;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #ff470f;
  color: white;
  padding: 8px;
  z-index: 100;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
