/* Ensure html and body take full viewport height */
html, body {
    height: 100%;
    margin: 0;
}

/* Set up body as a flex container in column direction */
body {
    display: flex;
    flex-direction: column;
    background-color: #1a1a1a;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    position: relative; /* Required for pseudo-element positioning */
    overflow-x: hidden; /* Avoid horizontal scrolling */
}

/* Add moving scanlines using a pseudo-element */
body::before {
  content: "";
  position: fixed; /* Fixed so it stays on screen during scroll */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* Allow clicks through the pseudo-element */
  z-index: -1; /* Ensure it appears on top of the background */
  background-image: repeating-linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.3), /* Dark line */
      rgba(0, 0, 0, 0.3) 2px, /* Line thickness */
      transparent 2px,
      transparent 5px  /* Space between lines */
  );
  animation: scanlinesMove 4s linear infinite;
}

/* Keyframes for scanline movement */
@keyframes scanlinesMove {
  0% {
      background-position: 0 0;
  }
  100% {
      background-position: 0 15px;
  }
}



/* main will flex and take up available space */
main {
    flex: 1;
    padding: 1rem;
}

/* The rest of your CSS remains the same */
header {
    background-color: #111;
    color: #ac0000;
    padding: 1rem;
    text-align: center;
    border-bottom: 4px solid #ac0000;
    text-shadow: 1px 1px 0 #000;
    box-shadow: 0 0 10px #ac0000;
    font-size: 1.2rem;

    
}

nav {
    margin-top: 1rem;
}

.tab-btn {
    background-color: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 0.5rem 1rem;
    margin: 0 0.3rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 0 0 8px #ac0000;
    font-family: 'Montserrat', sans-serif;

}

.tab-btn:hover {
    background-color: #000000;
}

.tab-btn:active {
    background-color: #330000;
}

a.resume-btn {
  color: #ac0000;        /* Your red color */
  text-decoration: underline;
  transition: color 0.3s ease;
}

a.resume-btn:hover {
  color: #cc0000;        /* A slightly brighter red on hover */
}
/* Hide all tab content sections by default */
.tab-content {
    display: none;
}

/* Show only the active tab content */
.tab-content.active {
    display: block;
}

footer {
    text-align: center;
    padding: 1rem;
    background-color:  #440000;
    ;
    color: #fff;
}

/* Project card container styling */
.project-card {
    background-color: #3b3b3b;
    border: 1px solid #ddd;
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }
  
  /* Title for each project */
  .project-card h3 {
    margin-top: 0;
    color: #ffffff;
  }
  
  /* Container for images */
  .project-images {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping if images are too wide */
    gap: 0.5rem;
    margin: 0.5rem 0;
  }

  .project-images img {
    transition: transform 0.3s ease;
  }
  
  .project-images img:hover {
    transform: scale(1.05); /* Grows the image by 5% when hovered */
  }
  
  /* Individual images styling */
  .project-images img {
    width: 250px;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
  }
  
  /* Style for the link */
  .project-link {
    display: inline-block;
    margin-top: 0.5rem;
    text-decoration: none;
    color: #fff;
    background-color: #1a1a1a;
    padding: 0.5rem 1rem;
    border-radius: 3px;
    transition: background-color 0.3s ease;
  }
  
  .project-link:hover {
    background-color: #440000;

  }

  /* Lightbox overlay styling */
.lightbox-overlay {
    position: fixed;               /* Position it over the entire viewport */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);  /* Semi-transparent dark background */
    display: none;                 /* Hidden by default */
    justify-content: center;       /* Center the image horizontally */
    align-items: center;           /* Center the image vertically */
    z-index: 1000;                 /* Make sure it's on top of other content */
}

.lightbox-overlay img {
    max-width: 90%;               /* Scale full-size image to fit the viewport */
    max-height: 90%;
    border-radius: 5px;           /* Optional: add rounded corners */
}

/* Keyframes for slide-in fade animation */
@keyframes slideInFade {
    from {
      opacity: 0;
      transform: translateX(-20px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  /* Prepare project cards: start off hidden (optional if handled by JS) */
  .project-card {
    opacity: 0;
    transform: translateX(-20px);
  }
  
  /* Animation trigger for project cards */
  .animate-in {
    animation: slideInFade 0.5s ease forwards;
  }
  
  /* Stagger */
  .project-card.animate-in:nth-child(1) { animation-delay: 0s; }
  .project-card.animate-in:nth-child(2) { animation-delay: 0.1s; }
  .project-card.animate-in:nth-child(3) { animation-delay: 0.2s; }
  /* Stagger */
  
  
  