* {
   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 {
  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; }
}

.navbar__links:hover::after {
   width: 60%;
}

@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: 3rem;
   padding-bottom: 0rem;
   align-items: center;
   justify-content: center;
   flex-direction: column;

}

.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 5s infinite steps(1);
   transform: translateX(-30px);
   margin-top: 100px;
   z-index: 1;
}


#main-logo{
   width: 100%;
   height: 100%;
   object-fit: cover;
}


@keyframes glitch {
   0%,26% { background: url('/images/inverted_logo.png'); background-size: cover; }
   20% { background: url('/images/glitch1.png'); background-size: cover; }
   22.5% { background: url('/images/glitch2.png'); background-size: cover; }
   25% { 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); }

.rugtufting__form {
  background-color: black;
  color: white;
  text-align: center;
  padding: 5rem 2rem;
  position: relative;
  overflow: hidden;
}

.rugtufting__form h2 {
  font-size: 3rem;
  margin-bottom: 3rem;
  color: #1affc6;
  animation: glitch-text 0.4s steps(2) infinite;
}

.form__container {
  display: flex;
  justify-content: center;
  position: relative;
}

.glitch-form {
  width: 100%;
  max-width: 700px;
  height: 800px;
  border: 2px solid #1affc6;
  box-shadow: 0 0 20px #1affc6, 0 0 40px #1affc6;
  animation: glitch-frame 5s infinite steps(1);
}

/* Optional: subtle frame animation */
@keyframes glitch-frame {
  0%,26% { box-shadow: 0 0 20px #1affc6; }
  20% { box-shadow: 0 0 40px black; }
  22.5% { box-shadow: 0 0 30px #00ffff; }
  25% { box-shadow: 0 0 20px #1affc6; }
}

@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: 2.53rem;     /* 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: 3rem;
   }

   .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;
   }

   #headshot {
      height: 110%;
      width: 110%;
   }

.frame-stack {
  position: absolute;
  pointer-events: none;
    z-index: 0;
    opacity: 0.5;
    width: 320px;
    height: 380px;
    left: 36.5%;
    top: 42%;
    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;
   }
}
