.name-box, .tagline-box, .location-box, .theme-toggle-box,
.resume-box, .social-box, .techstack-box, .email-box,
.experience-box, .project-box1, .project-box2, .p-s-box {
  background-color: var(--dark-surface);
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: all 0.4s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.name-box:hover, .tagline-box:hover, .location-box:hover,
.theme-toggle-box:hover, .resume-box:hover, .social-box:hover,
.techstack-box:hover, .email-box:hover, .experience-box:hover,
.project-box1:hover, .project-box2:hover, .p-s-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 7px 25px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(138, 43, 226, 0.3);
}

.name-box {
  height: 100%;
  width: 100%;
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.9), rgba(20, 20, 20, 0.9));
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.upper-name-box {
  height: 50%;
  display: flex;
  width: 100%;
  justify-content: space-evenly;
  align-items: center;
  margin-top: 5px;
}

.upper-name-box p {
  font-size: 35px;
  font-family: 'Poppins', sans-serif;
  position: relative;
  left: -20px;
  color: var(--text-primary);
  text-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
  font-weight:500;
  animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
  from { text-shadow: 0 0 5px rgba(138, 43, 226, 0.5); }
  to { text-shadow: 0 0 15px rgba(138, 43, 226, 0.8), 0 0 20px rgba(0, 180, 216, 0.6); }
}

.upper-name-box img {
  height: 80px;
  width: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-primary);
  box-shadow: 0 0 15px rgba(138, 43, 226, 0.7);
  transition: all 0.5s ease;
  animation: pulseProfile 4s ease-in-out infinite;
}

@keyframes pulseProfile {
  0% { box-shadow: 0 0 15px rgba(138, 43, 226, 0.7); }
  50% { 
    box-shadow: 0 0 15px rgba(0, 180, 216, 0.7);
    border: 3px solid rgba(0, 180, 216, 0.7); }
  100% { box-shadow: 0 0 15px rgba(138, 43, 226, 0.7); }
}

.upper-name-box img:hover {
  transform: scale(1.1) rotate(5deg);
  border: 3px solid var(--accent-quaternary);
}

.lower-name-box {
  height: 50%;
  width: 90%;
  display: flex;
  justify-content: center;
  margin-left: 10px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 14px;
  color: var(--text-secondary);
}

#mobile-tagline {
  display:none;
}
#desktop-tagline {
  display: flex;
}

.tagline-box {
  height: 20%;
  width: 100%;
  position: relative;
  justify-self: flex-end;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.9), rgba(25, 25, 25, 0.9));
  overflow: hidden;
  white-space: nowrap;
  box-sizing: border-box;
  font-family: 'Franklin Gothic light', 'Arial Narrow', Arial, sans-serif;
}
.marquee {
    display: inline-block;
    padding-left: 100%;
    animation: marqueeScroll 120s linear infinite;
  }
  
  .marquee span {
    display: inline-block;
    white-space: nowrap;
    font-size: 20px;
  }
  
  @keyframes marqueeScroll {
    0% {
      transform: translateX(0%);
    }
    100% {
      transform: translateX(-100%);
    }
  }
.tagline-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), var(--accent-quaternary), transparent);
  animation: slideRight 3s linear infinite;
}

@keyframes slideRight {
  0% { left: -100%; }
  100% { left: 100%; }
}

.location-box {
  height: 86%;
  width: 60%;
  margin-right: 20px;
  margin-top: 20px;
  overflow-y: hidden;
}

.location-box img {
  max-width: 100%;
  background-size: cover;
  position: relative;
  bottom: 65px;
  transition: all 0.5s ease;
  filter: saturate(1.2) contrast(1.1) brightness(0.9);
}

.location-box:hover img {
  transform: scale(1.05);
  filter: saturate(1.5) contrast(1.2) brightness(1);
}

.resume-box {
  height: 40%;
  width: 100%;
  display: flex;
  margin: 15px 0;
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.9), rgba(22, 22, 22, 0.9));
  justify-content: space-around;
  align-items: center;
}

.resume-box p {
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  font-size: 20px;
  margin-left: 10px;
}

.resume-icons {
  display: flex;
  justify-content: space-evenly;
  width: 40%;
}

.resume-icons i {
  font-size: 22px;
  margin-right: 5px;
  transition: transform 0.3s ease-out;
}

.resume-icons i:hover {
  transform: scale(1.3);
}

.theme-toggle-box {
    height: 40%;
    width: 100%;
    margin: 15px 0;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    
  }

.theme-toggle-box i {
    font-size: 28px;
}
  

.social-box {
  height: 27%;
  width: 82%;
  margin: 20px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

#desktop-email {
  display: flex;
}

#mobile-email {
  display: none;
}
.social-box img {
    background-size: cover;
    -webkit-filter: invert(80%); /* Safari/Chrome */
    filter: invert(80%);
    
}

.social-box img:hover {
  -webkit-filter: invert(100%);
  filter: invert(100%);
  
}

#linkedin_logo {
    height: 60px;
    width: 60px;
}

#github_logo {
    height: 80px;
    width: 80px;
}

#instagram_logo {
    height: 50px;
    width: 50px;
}

.techstack-box {
  height: 60%;
  width: 95%;
  margin: 20px 0 20px 10px;
}

.upper-techstack {
  height: 60%;
  width: 100%;
}
.marquee-tech{
  display: inline-block;
  padding-left: 100%;
  animation: marqueeScroll 40s linear infinite;
}

.marquee-tech span {
  display: inline-block;
  white-space: nowrap;
  font-size: 20px;
}

.lower-techstack {
  height: 40%;
  width: 100%;
}
.techstack-img {
  height: 70px;
  width: 70px;
  border-radius: 20px;
  margin: 20px 10px;
}

.lower-techstack p {
  font-size: 30px;
  color: white;
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  margin: 10px 50px;
}

.email-box {
  height: 27%;
  width: 95%;
  margin: 0 0 20px 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.email-box i {
    font-size: 45px;
    -webkit-filter: invert(10%); /* Safari/Chrome */
    filter: invert(10%);
}

.experience-box {
  height: 115%;
  width: 95%;
  margin-top: 20px;
}

  .upper-experience-box {
    height: 20%;
    width: 100%;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  }

  .upper-experience-box p {
    font-size: 30px;
    color: rgb(134, 134, 134);
    margin-left: 30px;
    margin-top: 20px;
  }

  .upper-experience-box p:hover {
    color: white;
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
    transition: all 0.5s ease;
    cursor: pointer;

  }

  .upper-experience-box p:not(:hover) {
    transition: all 0.5s ease;
  }

  .lower-experience-box {
    height: 80%;
    
  }

  #mobile-projects-text {
    display: none;
  }

.project-box1 {
  height: 105%;
  width: 100%;
  margin: 20px 30px 20px 0;
}

.upper-pb {
  height: 70%;
  width: 100%;
  
}

.upper-pb img {
  max-width: 100%;
  background-size: cover;
  
  transition: all 0.5s ease;
  filter: saturate(1.2) contrast(1.1) brightness(0.9);

}

.upper-pb img:hover {
  transform: scale(1.05);
  
}

#domain {
  color: gray;
  font-size: 15px;
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  margin: 12px 0 5px 10px;
}

#project-title {
  margin: 5px 0 10px 10px;
  font-size: 30px;
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

.lower-pb span {
  display: flex;
  justify-content: left;
  align-items: center;
  margin-left: 10px;
}

.tech-box {
  height: 20px;
  width: fit-content;
  min-width: 56px;
  background-color: rgb(84, 84, 84);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 20px;
  font-size: 10px;
  border-radius: 35px;
  color: rgb(152, 152, 152);
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

.project-box2 {
  height: 105%;
  width: 95%;
  margin: 100px 0 25px 15px;
  justify-self: flex-end;
}

.left-box {
  margin-top: 65px;
}

.right-box {  
  margin: 145px 0 25px 15px;
  
}

#pb4 {
  height: 118%;
}

.p-s-box {
  height: 100%;
  width: 100%;
  margin-top: 110px;
  display: flex;
  justify-content: left;
  align-items: center;
}

.p-s-box span {
  display: flex;
  justify-content: left;
  align-items: center;
}



#ps {
font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
font-size: 25px;
margin: 10px 20px;

}

#ps-text {
font-family:'Courier New', Courier, monospace;
font-size: 15px;

}
.navbar-box {
  height: 6vh;
  width: 20vw;
  background-color: bisque;
  border-radius: 40px;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  margin: 30px;
  position: relative;
  z-index: 1001;
  transition: all 0.3s ease;
}

.navbar-box.scrolled {
  background-color: rgba(138, 43, 226, 0.1);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 20px rgba(138, 43, 226, 0.2);
  border: 1px solid rgba(138, 43, 226, 0.3);
}

.navbar-box.scrolled a {
  color: var(--text-primary);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.navbar-box a.active {
  color: var(--accent-quaternary);
}

.navbar-box a.active::after {
  width: 100% !important;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-quaternary));
}


@media (max-width: 768px) {
 .navbar-box {
    width: 75vw !important;
    margin: 30px auto !important;
    justify-content: center !important;
    gap: 8px;
    padding: 0px 12px;
  }

 .navbar-box.scrolled {
    background-color: rgba(138, 43, 226, 0.15) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.3);
 }

 .navbar-box a {
  font-size: 14px;
  
 }

 .name-box {
  height: 40vh;
  width: 95%;
  margin: 0 auto;
 }
  #pb-link {
   font-size: 13px;
   padding: 3px 8px;
   margin-right: 5px;
   background-color: rgba(138, 43, 226, 0.15);
   color: var(--accent-quaternary);
   box-shadow: none;
   border: 1px solid rgba(138, 43, 226, 0.3);
   position: relative;
   
 }
 
 #pb-link:hover {
   background-color: rgba(138, 43, 226, 0.3);
   transform: translateY(-2px);
   box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
 }

 .upper-name-box p {
  font-size: 25px;
  left: -10px;
  animation: none;
 }

 .upper-name-box img {
  height: 75px !important;
  width: 75px !important;
  
 }

 .lower-name-box {
  font-size: 12px;
  margin-left: 0px;
  margin-top: 10px;
  max-width: 75%;
 }

 #mobile-tagline {
  display:flex;
}
#desktop-tagline {
  display: none;
}

.tagline-box {
  width: 95% !important;
  margin: 10px auto;
}

.marquee span {
  font-size: 15px;
}

.location-box {
  display: none;
}

.resume-box {
  height: 75px !important;
  width: 95% !important;
  margin: 15px auto;
  position: static;
}

.theme-toggle-box {
  display: none;
}

.social-box {
  height: 90px !important;
  width: 90% !important;
  margin: 10px auto !important;
}

.social-box img, .email-box i {
    display: block;
    margin: 0 auto;
}

/* Ensure anchor tags take up full space and center content */
.social-box a, .email-box a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.social-box i {
  font-size: 45px;
    -webkit-filter: invert(10%); /* Safari/Chrome */
    filter: invert(10%);
    
}
#desktop-email {
  display: none;
}

#mobile-email {
  display: flex;
}

.techstack-box {
  width: 95%;
  margin: 10px auto;
}


.techstack-img {
  height: 50px !important;
  width: 50px !important;
  margin: 10px 5px !important;
  border-radius: 30px !important;
}

.lower-techstack p {
  font-size: 20px !important;
  text-align: center !important;
}

.experience-box {
  height: 100%;
  width: 95%;
  margin: 20px auto !important;
}

.upper-experience-box p {
  font-size: 22px;
  margin-bottom: 5px;
}

.job-title {
  font-size: 25px !important;
  
}

.company {
  font-size: 15px !important;
  text-wrap: wrap !important;
  width: 200px;
}


#mobile-projects-text {
  display: block;
  margin: 30px;
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  font-size: 30px;
}

.project-box1, .project-box2 {
  height: auto;
  width: 95%;
  margin: 20px auto !important;
  max-width: 500px;
}

#pb-link {
  color: rgb(178, 178, 178);
  font-size: 16px;
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  margin: 12px 10px 5px 0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 16px;
  
  
  border-radius: 20px;
  transition: all 0.3s ease;
  font-weight: 500;
  box-shadow: 0 3px 8px rgba(138, 43, 226, 0.4);
  border: 1px solid rgb(255, 255, 255);
}

#pb-link:hover {
  background-color: var(--accent-quaternary);
  transform: translateY(-3px);
  box-shadow: 0 5px 12px rgba(76, 201, 240, 0.6);
}

.lower-pb span {
  display: flex;
  justify-content: left;
  align-items: center;
  margin-left: 10px;
  flex-wrap: wrap;
}

.tech-box {
  margin-right: 5px !important;
  height: 18px;
  margin-bottom: 10px;
  
  
}

.left-box, .right-box {
  margin: 20px auto !important;
}

#pb4 {
  height: auto;
  margin-bottom: 30px !important;
}

.p-s-box {
  height: auto;
  width: 95%;
  margin: 40px auto 20px auto;
  padding: 15px 0;
}

}

/* Media query for project link on mobile */
@media (max-width: 768px) {
  #pb-link {
    font-size: 14px;
    padding: 4px 10px;
    margin-right: 5px;
  }
}

/* Navbar transition effects */
.page-transition {
  transition: all 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.scale-glow {
  transform: scale(1.01);
  box-shadow: 0 0 10px rgba(138, 43, 226, 0.2), 0 0 20px rgba(138, 43, 226, 0.05);
  filter: brightness(1.05) saturate(1.02) blur(0.5px);
  z-index: 999;
  border: 1px solid rgba(138, 43, 226, 0);
  transition: all 0.6s ease-out, border-color 0.8s ease-out;
  animation: borderGlow 2s ease-in-out forwards;
}

@keyframes borderGlow {
  0% {
    border-color: rgba(138, 43, 226, 0);
  }
  100% {
    border-color: rgba(138, 43, 226, 0.4);
  }
}

.distort-effect {
  filter: blur(0.5px) contrast(0.9);
  opacity: 0.8;
}

.fade-out {
  opacity: 0;
  transform: translateY(-10px) scale(0.95);
  filter: blur(1px);
}

/* Specific hover states during transition */
.scale-glow:hover {
  transform: scale(1.02);
  box-shadow: 0 0 15px rgba(43, 76, 226, 0.3), 0 0 25px rgba(138, 43, 226, 0.1);
}

/* Enhanced scaling effects for specific element types */
.project-box1.scale-glow, .project-box2.scale-glow {
  transform: scale(1.002);
  box-shadow: 0 0 6px rgba(67, 43, 226, 0.15), 0 0 12px rgba(43, 141, 226, 0.03);
  filter: brightness(1.02) saturate(1.005) blur(0.3px);
  z-index: 999;
  border: 1px solid rgba(95, 43, 226, 0);
  transition: all 0.6s ease-out, border-color 0.8s ease-out;
  animation: projectPulse 3s ease-in-out infinite alternate, projectBorderGlow 2s ease-in-out forwards;
}

@keyframes projectBorderGlow {
  0% {
    border-color: rgba(138, 43, 226, 0);
  }
  100% {
    border-color: rgba(86, 43, 226, 0.3);
  }
}

.social-box.scale-glow, .email-box.scale-glow {
  transform: scale(1.01);
  box-shadow: 0 0 10px rgba(0, 180, 216, 0.2), 0 0 20px rgba(0, 180, 216, 0.05);
  filter: brightness(1.05) saturate(1.02) blur(0.3px);
  z-index: 999;
  border: 1px solid rgba(0, 180, 216, 0);
  transition: all 0.6s ease-out, border-color 0.8s ease-out;
  animation: socialPulse 3s ease-in-out infinite alternate, socialBorderGlow 2s ease-in-out forwards;
}

@keyframes socialBorderGlow {
  0% {
    border-color: rgba(0, 180, 216, 0);
  }
  100% {
    border-color: rgba(0, 180, 216, 0.4);
  }
}

.name-box.scale-glow {
  transform: scale(1.01);
  box-shadow: 0 0 10px rgba(43, 80, 226, 0.2), 0 0 20px rgba(138, 43, 226, 0.05);
  filter: brightness(1.05) saturate(1.02) blur(0.4px);
  z-index: 999;
  border: 1px solid rgba(138, 43, 226, 0);
  transition: all 0.6s ease-out, border-color 0.8s ease-out;
  animation: namePulse 3s ease-in-out infinite alternate, nameBorderGlow 2s ease-in-out forwards;
}

@keyframes nameBorderGlow {
  0% {
    border-color: rgba(138, 43, 226, 0);
  }
  100% {
    border-color: rgba(43, 67, 226, 0.4);
  }
}

@keyframes projectPulse {
  0% {
    
  }

  40% { 
    box-shadow: 0 0 15px rgba(0, 180, 216, 0.3), 0 0 30px rgba(0, 180, 216, 0.1);
    transform: scale(1.02);
    filter: brightness(1.1);
  }
  100% { 
    box-shadow: 0 0 20px rgba(0, 180, 216, 0.4), 0 0 35px rgba(0, 180, 216, 0.15);
    transform: scale(1.025);
    filter: brightness(1.15);
  }
}

@keyframes socialPulse {
  
  0%{}
  
  40% { 
    box-shadow: 0 0 15px rgba(0, 180, 216, 0.3), 0 0 30px rgba(0, 180, 216, 0.1);
    transform: scale(1.02);
    filter: brightness(1.1);
  }
  100% { 
    box-shadow: 0 0 20px rgba(0, 180, 216, 0.4), 0 0 35px rgba(0, 180, 216, 0.15);
    transform: scale(1.025);
    filter: brightness(1.15);
  }
}

@keyframes namePulse {
  0%{}
  40% { 
    box-shadow: 0 0 15px rgba(0, 180, 216, 0.3), 0 0 30px rgba(0, 180, 216, 0.1);
    transform: scale(1.02);
    filter: brightness(1.1);
  }
  100% { 
    box-shadow: 0 0 20px rgba(0, 180, 216, 0.4), 0 0 35px rgba(0, 180, 216, 0.15);
    transform: scale(1.025);
    filter: brightness(1.15);
  }
}


/* Glitch shake effect for entire page - gradually intensifies with motion blur */
.page-glitch {
  animation: glitchShake 0.5s ease-in-out;
}

@keyframes glitchShake {
  0% { 
    transform: translate(0);
    filter: blur(0px);
  }
  10% { 
    transform: translate(-1px, 1px);
    filter: blur(0px);
  }
  20% { 
    transform: translate(1px, -1px);
    filter: blur(0.2px);
  }
  30% { 
    transform: translate(-2px, -1px);
    filter: blur(0.3px);
  }
  40% { 
    transform: translate(2px, 2px);
    filter: blur(0.5px);
  }
  50% { 
    transform: translate(-4px, 0px);
    filter: blur(0.7px);
  }
  60% { 
    transform: translate(5px, -2px);
    filter: blur(1px);
  }
  70% { 
    transform: translate(-6px, -4px);
    filter: blur(1.2px);
  }
  80% { 
    transform: translate(7px, 5px);
    filter: blur(1.5px);
  }
  85% { 
    transform: translate(-8px, 6px);
    filter: blur(2px);
  }
  90% { 
    transform: translate(10px, -7px);
    filter: blur(2.5px);
  }
  95% { 
    transform: translate(-12px, 8px);
    filter: blur(3px);
  }
  100% { 
    transform: translate(0);
    filter: blur(0px);
  }
}

/* Red-blue glitch effect */
/* .glitch-colors {
  position: relative;
}

.glitch-colors::before,
.glitch-colors::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: inherit;
  pointer-events: none;
  z-index: -1;
}

.glitch-colors::before {
  background: rgba(255, 0, 0, 0.1);
  transform: translate(-1px, 0);
  mix-blend-mode: screen;
}

.glitch-colors::after {
  background: rgba(0, 100, 255, 0.1);
  transform: translate(1px, 0);
  mix-blend-mode: screen;
} */

/* Removed glitch overlay - no more color effects */