header {
  position: absolute;  /* or fixed if you want it to stay while scrolling */
  top: 0;
  left: 0;
  width: auto;        /* just fit content */
  background: transparent; /* so it doesn’t block anything */
  z-index: 1000;      /* stays on top visually */
  pointer-events: none; /* optional: clicks pass through */
}


/* push the page content down so it’s not hidden */
body {
  padding-top: 20px; /* same as header height */
}

/* GRID */

.grid {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(500px, 2fr);
  gap: 56px;
  align-items: start;
}

@media (max-width: 800px) {
  .grid {
    grid-template-columns: 1fr; /* stack */
  }
}


/* NAMECARD (left/up grid)*/

.namecard {
  position: relative; /* establishes reference for child positioning */
  padding-top: 25px; /* matches scrollcard padding-top */

}

@media (min-width: 1200px) {
  .namecard {
    padding-left: 40px; /* extra space on big screens */
  }
}

/* h1 is my name */
.namecard h1 {
  font-family: 'Orbitron', monospace;
  color: #36BCF7FF;

  /* Shrink letters if needed, but allow word wrapping */
  font-size: clamp(1rem, 2vw, 2rem);

  white-space: normal;       /* words can wrap */
  word-break: keep-all;      /* do not break words mid-letter */
  overflow-wrap: break-word; /* wrap long words if necessary */
  max-width: 100%;           /* stay inside container */
  box-sizing: border-box;
  line-height: 1.2;
}

/* prof pic */
.namecard .profile-pic {
  width: 150px;             /* fixed size */
  height: 150px;
  border-radius: 5%;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;      /* space below the image */
  box-shadow: 0 4px 12px rgba(0,0,0,0.25); /* soft shadow */
}

/* Profile pic: shrink slightly on smaller screens */
.pic-wrap .profile-pic {
  width: clamp(90px, 10vw, 115px); /* scales down but never below 100px */
  height: auto;
  border-radius: 2.5%;
  border: 0.1px outset #36BCF7FF;
  object-fit: cover;
  display: block;

}

/* Profile + first 3 items */
.profile-features {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: nowrap; /* never wrap first 3 items */
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
   padding-top: 20px
}

/* Stack first 3 features vertically */
.features-right {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: flex-end; /* aligns items to bottom */
}

/* Each feature item: image + text */
.feature-item {
  display: flex;
  align-items: center;  /* vertically centers image and text */
  gap: 6px;
  font-family: 'Zain', monospace;
  color: #666666;
}

/* Make all text inside stay on the same line as image */
.feature-item p{
  font-size:1rem !important;
  line-height:1 !important;
  margin: 0;            /* remove default paragraph margin */
  display: inline-block; /* allows text to stay next to image */
}

.feature-item a{
  font-size: 16px;
}

.feature-item img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* tweaking so they all seem the same shade of gray */
.item1 {
  filter: brightness(120%);
}

.item2 {
  filter:brightness(100%);
}

.item3 {
  filter: brightness(130%);
}

.item4 {
  filter: brightness(120%);
}

.item5 {
  filter: brightness(150%);
}

.feature-item p {
  font-size: 0.7rem;
  margin: 0;
}

/* Remaining items below */
.features-grid {
  display: grid;
  grid-template-columns: 1fr; /* 1 per row */
  gap: 10px;
  margin-top: 12px;
}

/* Force item 5 under item 4 */
.features-grid .feature-item:nth-child(2) {
  grid-column: 1 / 2;
}

/* for small screens */
@media (max-width: 800px) {
  .features-grid {
    grid-template-columns: 1fr; /* stack everything */
  }
}


/* binary glitch*/
.binary-glitch {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.8rem;
  color: #00FF00;
  position: relative;
}

.glitch {
  display: inline-block;
  animation: glitchFade 4s infinite;
}

.glitch2 {
  animation: glitchFade2 3.5s infinite;
}

.glitch3 {
  animation: glitchFade3 4.5s infinite;
}

@keyframes glitchFade {
  0%, 20%, 40%, 60%, 80%, 100% { opacity: 1; }
  10%, 30%, 50%, 70%, 90% { opacity: 0; }
}

@keyframes glitchFade2 {
  0%, 25%, 50%, 75%, 100% { opacity: 1; }
  12%, 37%, 62%, 87% { opacity: 0; }
}

@keyframes glitchFade3 {
  0%, 33%, 66%, 100% { opacity: 1; }
  16%, 49%, 82% { opacity: 0; }
}


/* SCROLLCARD */

.scrollcard {
  position: relative;
  padding-top: 15px;
  font-family: 'Inter', monospace;

}

@media (max-width: 600px) {
  .namecard, .scrollcard {
    padding: 20px;
  }
}


/* SCROLLCARD TABS/nav menu */

.scrollcard .nav {
  /* position: sticky; */
  /* top: 0; */
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  width: 100%;
  line-height: 1.5;     /* ensures items have height */
}

.scrollcard .nav a {
  background-color: white;
  text-decoration: none;
  border: 2px solid #dcdcdc;
  border-radius: 6px;
  margin-bottom: 12px;
  display: inline-block;  /* ensures proper block height for wrapping */
  background-clip: padding-box;
  color: #36BCF7FF;
  padding: 10px 20px;
  font-weight: 650;
  box-shadow:
    0 2px 0 #bfbfbf,
    0 4px 8px rgba(0,0,0,0.15);
  transition: transform 0.1s ease;
  position: relative;      /* this moves the light behind the nav a */


}

.scrollcard .nav a::before {
  z-index: -1;
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  z-index: -1;
  filter: blur(10px);
  background: radial-gradient(circle, hsl(var(--hue), 100%, 50%), transparent 180%);
  --hue: 180;
  opacity: 0.5; /* base brightness */
  animation: pulse 4s ease-in-out infinite, colorChange 20s steps(4, end) infinite;

}

.scrollcard .nav a:active {
  transform: translateY(2px); /* move button down */
  background-color: white;    /* stays white on click */
}


@keyframes pulse {
  0%, 100% { opacity: 0.25; }   /* base dim */
  25% { opacity: 0.5; }
  50% { opacity: 0.8; }
  75%       { opacity: 0.25; }   /* dim again */
}



.scrollcard-content {
    padding: 20px;
}

/* Add space between the list items */
.scrollcard-content ul {
    margin-top: 20px;
    padding-left: 20px;
}

.scrollcard-content ul li {
    margin-bottom: 15px; /* Adjust this value for desired space */
}




.tab-content {
  display: none;         /* hide all by default */
  padding: 20px 0;
}

.tab-content.active {
  display: block;        /* show active content */
}

/* text options under the tabs  */
.paragraph {
  text-align: justify;
  padding-right: 150px;   /* default for big screens */
  line-height: 1.5;
  margin: 0 0 1em 0;
}

@media (max-width: 800px) {
  .paragraph {
    padding-right: 15px;  /* smaller screens */
  }
}

.lang {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.9rem;
}

.job-title,
.education-degree{
  font-weight: 700;
  display: flex;
  font-weight: 700;
  margin: 0;
}

.date {
  color: #999999; /* light gray */
  font-size: 0.9rem; /* smaller text */
  display: inline; /* ensures text-align works */
}


/* start of cool URL  */
.feature-item a,
.company-name a,
.education-university a,
.slide-item h3 a {
  text-decoration: none;
  color: #1a73e8;
  font-weight: 600;
  position: relative;
  transition: color 0.3s ease;
}

.feature-item a::after,
.company-name a::after,
.education-university a::after,
.slide-item h3 a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background-color: #1a73e8;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.feature-item a:hover::after,
.company-name a:hover::after,
.education-university a:hover::after,
.slide-item h3 a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.feature-item a:hover,
.company-name a:hover,
.education-university a:hover,
.slide-item h3 a:hover {
  color: #0c47b7;
}
/* end of cool URL  */




/*  GALLERY   */

.gallery-container {
  max-width: 400px;      /* overall gallery width */
  margin: 0;
  overflow: hidden;      /* hides overflow but still allows slide movement */
  position: relative;
}

.gallery-slide {
  display: flex;
  transition: transform 0.5s ease; /* keep animation */
}

.gallery-img {
  min-width: 100%;
  display: block;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 30px;
  color: #333;
  cursor: pointer;
  user-select: none;
  padding: 5px;
  z-index: 5;
}

.arrow.left { left: 0; }
.arrow.right { right: 0; }

/* Make dots container match gallery width */
.gallery-dots {
  width: 100%;           /* full width of gallery */
  max-width: 400px;      /* same as .gallery-container */
  margin: 10px 0 0 0;    /* top margin only */
  text-align: center;    /* center dots horizontally */
  padding: 0;            /* remove default padding */
}

.dot {
  height: 12px;
  width: 12px;
  margin: 0 4px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
}

.dot.active {
  background-color: #717171;
}

/* Hide scrollbar (for any overflow container) */
.gallery-slide::-webkit-scrollbar {
  display: none;
}
.gallery-slide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.slide-item {
  min-width: 100%;
  text-align: left;
}

.slide-item img {
  width: 100%;           /* fills slide width */
  height: 100%;          /* fills slide height */
  object-fit: contain;   /* keeps aspect ratio */
  border-radius: 5px;
  display: block;
  margin: auto;
}

.slide-item h3 {
  margin-bottom: 10px;
}