* {
   box-sizing: border-box;
   margin: 0;
   padding: 0;
   font-family: 'League Spartan', sans-serif;
}

.navbar {
   background: black;
   height: 80px;
   display: flex;
   justify-content: center;
   align-items: center;
   font-size: 1.2rem;
   position: sticky;
   top: 0;
   z-index: 999;
}

.navbar__container {
   display: flex;
   align-items: center;
   height: 80px;
   width: 100%;
   padding-right: 40px;
}

#navbar__logo {
   margin-right: auto;
   padding-left: 10px;
   cursor: pointer;
}

#navbar__logo img {
   padding-top: 10px;
   height: 80px;
   width: auto;
}

.navbar__menu {
   display: flex;
   align-items: center;
   list-style: none;
   text-align: center;
}

.navbar__item {
   height: 80px;
   width: auto;
}

.navbar__links {
   color: #fff;
   display: flex;
   align-items: center;
   justify-content: center;
   text-decoration: none;
   padding: 0 1rem;
   height: 100%;
   position: relative;
}

.navbar__links::after {
   content: '';
   position: absolute;
   bottom: 10px;
   left: 50%;
   width: 0;
   height: 2px;
   background: #fff;
   transition: all 0.3s ease;
   transform: translateX(-50%);
}

.navbar__links:hover::after {
   width: 60%;
}

.navbar__links:hover {
  animation: glitch-text 0.4s steps(2);
}

@keyframes glitch-text {
  0% { text-shadow: 2px 0 black, -2px 0 white; }
  50% { text-shadow: -2px 0 black, 2px 0 white; }
  100% { text-shadow: none; }
}



@media screen and (max-width:960px) {
   .navbar__container {
      display: flex;
      justify-content: space-between;
      height: 80px;
      z-index: 1;
      width: 100%;
      max-width: 1300px;
      padding: 0;
   }

   .navbar__menu {
      display: grid;
      grid-template-columns: auto;
      margin: 0;
      width: 100%;
      position: absolute;
      top: -1000px;
      opacity: 1;
      transition: all 0.5s ease;
      height: 50vh;
      z-index: -1;
      background: black;
   }

   .navbar__menu.active {
      background: black;
      top: 100%;
      opacity: 1;
      transition: all 0.5s ease;
      z-index: 99;
      height: 50vh;
      font-size: 1.6rem;
      padding: 0 0 25rem;
   }

   .navbar__toggle .bar {
      width: 25px;
      height: 3px;
      margin: 5px auto;
      transition: all 0.3s ease-in-out;
      background: #fff
   }

   .navbar__item {
      width: 100%;
   }

   .navbar__links {
      text-align: center;
      padding: 2rem;
      width: 100%;
      display: table;
   }

   #mobile-menu {
      position: absolute;
      top: 20%;
      right: 5%;
      transform: translate(5%, 20%);
   }

   .navbar__toggle .bar {
      display: block;
      cursor: pointer;
   }

   #mobile-menu.is-active .bar:nth-child(2) {
      opacity: 0;
   }

   #mobile-menu.is-active .bar:nth-child(1) {
      transform: translateX(8px) rotate(45deg)
   }

   #mobile-menu.is-active .bar:nth-child(1) {
      transform: translateY(-8px) rotate(-45deg)
   }
}

/*Branding Section */
.branding {
   background-color: black;
   display: grid;
   grid-template-columns: 1fr 0.5fr 1fr;
   height: 65vh;
   min-height: 65vh;
   padding: 0 7.9rem;
   position: relative;
}

.words {
   color: #fff;
   padding-bottom: 5px;
}

.brand__left {
   display: flex;
   color: #fff;
   font-size: 2.4rem;
   padding-bottom: 0rem;
   align-items: center;
   justify-content: center;
   

}

.brand__right {
   color: #fff;
   font-size: 3rem;
   display: flex;
   justify-content: center;
   align-items: center;

}

.brand__center{
   position: relative;
   display: grid;
   place-items: center;
   width: 350px;
   height: 350px;
   animation: glitch 4s infinite steps(1);
   transform: translateX(-30px);
   margin-top: 100px;
   z-index: 1;
}


#main-logo{
   width: 100%;
   height: 100%;
   object-fit: cover;
}
@keyframes glitch {
   0%,46% { background: url('/images/inverted_logo.png'); background-size: cover; }
   40% { background: url('/images/glitch1.png'); background-size: cover; }
   42.5% { background: url('/images/glitch2.png'); background-size: cover; }
   45% { background: url('/images/glitch3.png'); background-size: cover; }
   
}

.name {
  display: flex;
  flex-direction: column;
  align-items: flex-start; 
  gap: 0.3rem;
  position: relative;
  z-index: 2;
  color: white;
  font-size: 3rem;
  font-weight: 600;
}



.by-andre,
.lee-joe {
  white-space: nowrap;
  display: inline-block;
}

.brand__right {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: 50px;
}

.brand__left,
.brand__right{
  overflow: hidden;
}
.frame-stack {
  position: absolute;
  right: 8%;
  top: 50%;
  width: 460px;
  height: 460px;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
}

.frame-stack span {
  position: absolute;
  inset: 0;
  border: 2px solid #1affc6;
  opacity: 0.4;
}

.frame-stack span:nth-child(1) { transform: translate(0, 0); }
.frame-stack span:nth-child(2) { transform: translate(20px, 20px); }
.frame-stack span:nth-child(3) { transform: translate(40px, 40px); }
.frame-stack span:nth-child(4) { transform: translate(60px, 60px); }

/* ===== Projects Grid ===== */
.projects {
  padding: 4rem 2rem;
  background-color: black;
}

.projects__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* ===== Hero Project Cards ===== */
.projects__container {
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

.project__card {
  position: relative;
  height: 420px;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.4);
  background-color: #48494B;
}

/* Background image */
.project__image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.65);
  transition: transform 0.6s ease;
}
a {
  text-decoration: none;
}

/* Text overlay */
.project__overlay {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: white;
  max-width: 60%;
}

/* Text */
.project__title {
  font-size: 2.6rem;
  margin-bottom: 0.5rem;
}

.project__subtitle {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

.project__date {
  font-size: 1rem;
  opacity: 0.85;
  margin-bottom: 1.5rem;
}

/* Button */
.project__btn {
  position: relative;
  display: inline-block;
  background: black;
  color: white;
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
  overflow: hidden;
  z-index: 1;
  transition: color 0.3s ease;
   width: fit-content;
}

.project__btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #48494B;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  z-index: -1;
}

.project__btn:hover::before {
  transform: scaleX(1);
}

.project__btn:hover {
  color: white; /* Keep text visible over the black background */
}

/* Hover effects */
.project__card:hover .project__image {
  transform: scale(1.05);
}


.project__card:hover {
  transform: translateY(-6px);
  border-color: white;
}

.project__card img {
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
}

.project__card h2 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.project__card p {
  font-size: 1rem;
  opacity: 0.85;
}
.project__card:hover .project__title {
  animation: glitch-text 0.4s steps(2) infinite;
}

@keyframes glitch-text {
  0% { text-shadow: 2px 0 black, -2px 0 white; }
  25% { text-shadow: -2px 2px black, 2px -2px white; }
  50% { text-shadow: 2px -2px black, -2px 2px white; }
  75% { text-shadow: -1px 1px black, 1px -1px white; }
  100% { text-shadow: 2px 0 black, -2px 0 white; }
}
.project__card:nth-child(even) .project__overlay {
  align-self: flex-end;
  text-align: right;
}

@media screen and (max-width: 1200px) {
.brand__left,
.brand__right{
  overflow: visible;
}

  .by-andre,
  .lee-joe {
    white-space: normal;   /* allow wrapping */
    font-size: 3.2rem;
  }

  .brand__left,
  .brand__right {
    font-size: 4rem;     /* slightly smaller for tablet */
  }

  .frame-stack {
  position: absolute;
  pointer-events: none;
    z-index: 0;
    opacity: 0.5;
    width: 320px;
    height: 380px;
    left: 77%;
    top: 42%;
    right: auto;
    transform: translate(-50%, -50%);
  
}
}

@media screen and (max-width:960px) {

   .name {
  display: flex;
  flex-direction: column;
  align-items: center; 
  gap: 0.3rem;
}

.brand__center{
   position: relative;
   display: grid;
   place-items: center;
   background: url('/images/tran_logo.png');
   animation: glitch 5s infinite steps(1);
   transform: translatex(-30px);
   margin: 0;
   width: 15rem;
   height: 15rem;

}
   .branding {
      background-color: black;
      display: grid;
      grid-auto-rows: min-content;
      grid-template-columns: 1fr;
      gap: 0rem;
      justify-items: center;
      padding-top: 3rem;
      height: 90vh;
      min-height: 90vh;
   }

   .brand__left {
      text-align: center;
    
      font-size: 2rem;
   }

   .brand__right {
      text-align: center;
      font-size: 3rem;
      justify-content: center;
   }

      .brand__right{
         font-size: 1.5rem;
      }
  

      .branding{
         padding:0rem;    
         height: 67vh;
         min-height: 67vh;
      
  .brand__left,
  .brand__right {
    width: 100%;
    display: flex;
    justify-content: center;
    text-align: center;
    margin-left: 0px;
  }
  



  .name {
    align-items: center;
  }
}


   h1,
   h2 {
      margin: 0;
   }

   #main-logo {
      width: 300px;
      height: auto;
   }



.frame-stack {
  position: absolute;
  pointer-events: none;
    z-index: 0;
    opacity: 0.5;
    width: 320px;
    height: 380px;
    left: 34%;
    top: 35%;
    right: auto;
    transform: translate(-50%, -50%);
  
}

.frame-stack span:nth-child(1) { transform: translate(0, 0); }
.frame-stack span:nth-child(2) { transform: translate(20px, 20px); }
.frame-stack span:nth-child(3) { transform: translate(40px, 40px); }
.frame-stack span:nth-child(4) { transform: translate(60px, 60px); }

  .name,
  .brand__left {
    position: relative;
    z-index: 2;
  }

#headshot {
   width: 110% ;
   height: auto;
   padding-left: 1rem;
}



}
/* Footer */
.footer__container{
   background-color: black;
   padding: 4rem 0;
   display: flex;
   flex-direction: column;
   align-items: center;
}

.footer__links{
   width: 100%;
   max-width: 1000px;
   display: flex;
   justify-content: center;
}

.footer__link--wrapper{
   display: flex;
}

.footer__link--items{
   display: flex;
   flex-direction: column;
   margin: 16px;
   width: 160px;
 
}

.footer__link--items h2{
   color: #fff;
   margin-bottom: 16px;
}

.footer__link--items a{
   color: #fff;
   text-decoration: none;
   margin-bottom: 0.5rem;
}

.footer__link a {
   color: #fff;
   display: flex;
   align-items: center;
   justify-content: center;
   text-decoration: none;
   padding: 0 1rem;
   height: 100%;
}

.footer__link a {
   position: relative;
}

.footer__link--items a {
  position: relative;
  color: #fff;
  text-decoration: none;
  width: fit-content;
  margin-bottom: 0.5rem;
}

/* underline */
.footer__link--items a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #fff;
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

/* hover */
.footer__link--items a:hover::after {
  width: 100%;
}
/* Bottom row */
.social__media{
   width: 100%;
   max-width: 1000px;
}

.social__media--wrap{
   display: flex;
   align-items: center;
   justify-content: space-between;
   margin-top: 40px;
   gap: 40px;
}

/* Logo */
.footer__logo{
   display: flex;
   align-items: center;
   gap: 10px;
   color: #fff;
   text-decoration: none;
   font-size: 2rem;
}

.footer__logo img{
   width: 50px;
   height: auto;
}

/* Copyright */
.website__right{
   color: #fff;
   font-size: 0.9rem;
   white-space: nowrap;
}

/* Icons */
.social__icons{
   display: flex;
   gap: 16px;
}
.social__icons img{
   transition: transform 0.25s ease, opacity 0.25s ease;
}

.social__icons a:hover img{
   transform: scale(1.15);
   opacity: 0.85;
}

.social__icons img{
   width: 40px;
   height: 40px;
}

/* Mobile */
@media screen and (max-width: 820px){
   .social__media--wrap{
      flex-direction: column;
      text-align: center;
   }
}
