/* Navigation Enhancements */
#nav{
  position: fixed;
  top: 0;
  width: 100%;
  height: 15vh;
  list-style: none;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  cursor: url(https://cur.cursors-4u.net/cursors/cur-2/cur106.cur), auto !important;
  border-bottom: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(10, 10, 10, 0.8);
}

#nav li{
  margin-right: 2%;
}

.navLink{
  padding: 8px 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.navLink::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--highlight-color);
  transform: translateX(-50%);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px var(--highlight-color);
}

.navLink:hover::before {
  width: 80%;
}

.navLink:hover{
  background-color: rgba(0, 0, 0, 0.6);
  transform: translateY(-2px);
}

#title{
  font-size: 2rem;
}

#nav li:first-child{
  margin-right: auto;
  width: 30%;
}

a span{
  padding: 1%;
  background-color: var(--tertiary-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
}

a span:hover {
  background-color: black;
  transform: scale(1.1);
  box-shadow: 0 0 10px var(--highlight-color);
}

#scroll-watcher {
  height: 10px;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 11;
  background: linear-gradient(90deg, var(--highlight-color), var(--blue-accent));
  transform-origin: left;
  scale: 0 1;
  animation: scroll-watcher linear;
  animation-timeline: scroll(y);
  box-shadow: 0 0 20px var(--highlight-color);
}

@keyframes scroll-watcher {
  to {
    scale: 1 1;
  }
}

/* Projects Wrapper Enhancements */
.projects-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: auto;
  padding: 4rem 0;
}

.projects-wrapper::before,
.projects-wrapper::after {
  content: '';
  position: absolute;
  width: 80vw;
  height: 800vh;
  top: -50%;
  left: -50%;
  background: radial-gradient(circle, var(--contrast-color) 10%, transparent 30%);
  background-size: 15px 10px;
  opacity: 0.05;
  animation: backgroundMove 10s linear infinite;
  z-index: -1;
}

.projects-wrapper::after {
  top: -45%;
  left: -55%;
  animation-duration: 90s;
}

@keyframes backgroundMove {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  100% {
    transform: translate(-50px, -50px) rotate(360deg);
  }
}

/* Enhanced Project Title */
.projectTitle {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  z-index: 5;
}

.projectTitle h2 {
  font-size: 5vw;
  font-weight: 600;
  font-family: 'Courier New', monospace;
  text-shadow: 
    0 0 10px var(--highlight-color),
    0 0 20px var(--highlight-color),
    0 0 30px var(--highlight-color);
  letter-spacing: -0.5vw;
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.projectTitle h2::before,
.projectTitle h2::after {
  content: 'Projects';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  overflow: hidden;
  background: var(--primary-color);
  color: var(--contrast-color);
}

.projectTitle h2::before {
  left: 3px;
  text-shadow: -2px 0 var(--accompany-color);
  animation: glitch-1 2s infinite linear alternate-reverse;
}

.projectTitle h2::after {
  left: -3px;
  text-shadow: 2px 0 var(--blue-accent);
  animation: glitch-2 3s infinite linear alternate-reverse;
}

@keyframes glitch-1 {
  0%, 100% { clip-path: inset(50% 0 30% 0); }
  20% { clip-path: inset(33% 0 66% 0); }
  40% { clip-path: inset(10% 0 61% 0); }
  60% { clip-path: inset(83% 0 5% 0); }
  80% { clip-path: inset(92% 0 3% 0); }
}

@keyframes glitch-2 {
  0%, 100% { clip-path: inset(25% 0 58% 0); }
  20% { clip-path: inset(75% 0 5% 0); }
  40% { clip-path: inset(46% 0 14% 0); }
  60% { clip-path: inset(72% 0 19% 0); }
  80% { clip-path: inset(15% 0 94% 0); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-1px); }
  20%, 40%, 60%, 80% { transform: translateX(1px); }
}

.projectTitle h2 {
  animation: shake 0.5s infinite;
  animation-timing-function: steps(2, end);
}

/* Projects Grid */
#projects{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 4rem;
  padding: 2rem 0;
}

.project-div {
  min-height: 50vh;
  width: 90%;
  max-width: 1400px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 3vh;
  opacity: 0;
  transform: translateY(80px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 3;
  position: relative;
}

/* Reveal animation when in viewport */
.project-div.reveal {
  opacity: 1;
  transform: translateY(0);
}

/* Section divider */
.project-div::before {
  content: '';
  position: absolute;
  top: -2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent, 
    var(--highlight-color), 
    transparent
  );
  opacity: 0.3;
}

.project-div:first-child::before {
  display: none;
}

.project-details{
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 50%;
  margin: 2rem;
  color: var(--contrast-color);
  padding: 2rem;
  background: rgba(0, 0, 0, 0.3);
  border-left: 3px solid var(--highlight-color);
  box-shadow: -5px 0 20px rgba(255, 140, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-details:hover {
  background: rgba(0, 0, 0, 0.5);
  border-left-color: var(--blue-accent);
  box-shadow: -5px 0 30px rgba(0, 212, 255, 0.3);
  transform: translateX(-10px);
}

.project-details h2 {
  margin-bottom: 1rem;
  font-size: 2rem;
}

.project-details p {
  margin: 0.5rem 0;
  line-height: 1.6;
}

.project-details p:first-of-type {
  color: var(--highlight-color);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
}

/* Project Image with Scanning Effect */
.project-image {
  width: 45%;
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: 
    inset 0.5px -0.5px 7px 1.5px var(--highlight-color),
    0 10px 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

/* Scanning line effect */
.project-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent,
    rgba(0, 212, 255, 0.4),
    transparent
  );
  transition: left 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-div.reveal .project-image::before {
  animation: scan 2s ease-out;
}

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

/* Hologram overlay */
.project-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 212, 255, 0.1) 50%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-image:hover::after {
  opacity: 1;
}

.project-image:hover {
  transform: scale(0.95);
  box-shadow: 
    inset 0.5px -0.5px 10px 3px var(--blue-accent),
    0 15px 50px rgba(0, 212, 255, 0.4);
}

.project-image:hover a {
  opacity: 1;
  transform: translateY(-10px) scale(1.1);
}

.project-link{
  opacity: 0;
  margin-top: 10px;
  padding: 12px 24px;
  border-radius: 4px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid var(--highlight-color);
  position: relative;
  z-index: 10;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.project-link:hover{
  background: var(--highlight-color);
  color: #000;
  box-shadow: 0 0 20px var(--highlight-color);
  transform: translateY(-10px) scale(1.15) !important;
}

/* Parallax Effect */
.parallax-project {
  position: relative;
  overflow: visible;
  transition: transform 0.1s ease-out;
}

/* View All Projects Button */
.view-all-projects {
  text-align: center;
  padding: 4rem 0;
  margin-top: 3rem;
}

.view-all-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-color), var(--highlight-color));
  color: var(--contrast-color);
  padding: 1.5rem 3rem;
  border: 3px solid var(--highlight-color);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Courier New', monospace;
  font-size: 1.2rem;
  font-weight: bold;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 2px;
  box-shadow: 0 5px 30px rgba(255, 140, 0, 0.4);
}

.view-all-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s;
}

.view-all-btn:hover::before {
  left: 100%;
}

.view-all-btn:hover {
  transform: translateY(-5px);
  box-shadow: 
    0 10px 40px rgba(255, 140, 0, 0.6),
    0 0 40px var(--highlight-color);
  border-color: var(--blue-accent);
}

@media screen and (max-width:800px) {
  #title{
    font-size: 1.8rem;
  }

  .projectTitle h2 {
    font-size: 12vw;
  }

  #projects{
    gap: 2rem;
    padding: 1rem 0;
  }

  .project-div{
    min-height: 35vh;
    width: 95%;
    padding: 2vh;
  }

  .project-div::before {
    width: 80%;
  }

  .project-link {
    opacity: 1;
    z-index: 5;
    transform: translateY(5rem) translateX(7rem);
  }

  .project-details{
    display: none;
  }

  .project-image{
    width: 100%;
    min-height: 25vh;
    background-position: center;
    background-size: contain;
  }
  
  .view-all-btn {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
}

/* Add this to your main.css file */

/* View All Projects Button Styling */
.view-all-projects {
  text-align: center;
  padding: 3rem 0;
  margin-top: 2rem;
}

.view-all-btn {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--contrast-color);
  padding: 1rem 2rem;
  border: 2px solid var(--accent-color);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Courier New', monospace;
  font-size: 1.1rem;
  text-shadow: 0 0 5px var(--highlight-color);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.view-all-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background-color: var(--highlight-color);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  transition: width 0.5s ease, height 0.5s ease;
  z-index: -1;
}

.view-all-btn:hover::before {
  width: 300px;
  height: 300px;
}

.view-all-btn:hover {
  color: #000;
  border-color: var(--highlight-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

@media screen and (max-width: 800px) {
  .view-all-projects {
    padding: 2rem 0;
  }

  .view-all-btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
}









/* Animated Placeholder for Projects Without Images */
.project-image.placeholder {
  background: linear-gradient(135deg, 
    rgba(255, 140, 0, 0.1) 0%, 
    rgba(0, 212, 255, 0.1) 100%);
  position: relative;
  overflow: hidden;
}

.project-image.placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 140, 0, 0.3),
    transparent
  );
  animation: shimmer 2s infinite;
}

.project-image.placeholder::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  border: 3px solid var(--highlight-color);
  border-radius: 50%;
  opacity: 0.3;
  animation: pulse-ring 2s ease-in-out infinite;
}

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

@keyframes pulse-ring {
  0%, 100% { 
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.3;
  }
  50% { 
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.1;
  }
}

/* Icon/Text in placeholder */
.project-image.placeholder .placeholder-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 1;
}

.project-image.placeholder .placeholder-icon {
  font-size: 4rem;
  color: var(--highlight-color);
  opacity: 0.5;
  animation: float 3s ease-in-out infinite;
}

.project-image.placeholder .placeholder-text {
  margin-top: 1rem;
  color: var(--contrast-color);
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  opacity: 0.6;
  text-shadow: 0 0 10px var(--highlight-color);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}