* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  text-decoration-line: underline;
  text-decoration-color: #00ffff; 

  text-decoration-style: solid;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  color: inherit; /* optional, or use currentColor if needed */
  transition: background 0.2s ease;
}

a:hover,
a:focus {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  outline: none;
}

.certifications {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
  flex-wrap: wrap;
}

.crt-icon {
  position: relative;
  display: inline-block;
  padding: 0.5rem;
  background: #000;
  border-radius: 6px;
  box-shadow:
    0 0 6px #00ff99,
    0 0 12px #00ff99,
    0 0 20px #00ff99;
  transition: transform 0.2s ease;
  overflow: hidden;
}

/* Scanlines */
.crt-icon::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 255, 128, 0.15) 0px,
    rgba(0, 255, 128, 0.15) 2px,
    transparent 2px,
    transparent 4px
  );
  pointer-events: none;
  z-index: 2;
}

/* Static noise overlay */
.crt-icon::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: url("Media/static.gif"); /* <- your static gif path */
  background-size: cover;
  opacity: 0.06;
  mix-blend-mode: screen;
  animation: flicker 0.3s infinite;
  pointer-events: none;
  z-index: 3;
}

.crt-icon img {
  display: block;
  width: 100%;
  max-height: 120px;
  z-index: 1;
  position: relative;
  filter: brightness(1.2) contrast(1.2) saturate(1.3);
}

/* Hover distortion */
.crt-icon:hover {
  transform: scale(1.02) translateX(-0.5px);
  animation: glitch 300ms infinite;
}

@keyframes flicker {
  0%, 100% { opacity: 0.05; }
  50% { opacity: 0.08; }
}

@keyframes glitch {
  0% { transform: scale(1.02) translate(0, 0); }
  20% { transform: scale(1.02) translate(1px, -1px); }
  40% { transform: scale(1.02) translate(-1px, 1px); }
  60% { transform: scale(1.02) translate(1px, 1px); }
  80% { transform: scale(1.02) translate(-1px, -1px); }
  100% { transform: scale(1.02) translate(0, 0); }
}





@font-face {
  font-family: 'MesloLGM Nerd Font';
  src: url('./Media/p10kfont.woff2') format('woff2'); /* correct format! */
  font-weight: normal;
  font-style: normal;
}
.p10k-prompt,
.p10k-prompt .segment,
.p10k-prompt .connector,
.terminal-command,
.terminal-command .symbol,
.terminal-command .command,
.blinking-cursor {
  font-family: 'MesloLGM Nerd Font', 'Fira Code', monospace;
}
.p10k-prompt .connector {
  display: flex;
  align-items: center;
  font-size: 1.15rem;
  margin-left: -0.15rem;
  margin-top: 0.01rem; /* 🔥 critical tweak */
  position: relative;
  z-index: 1;
  line-height: 1;
  letter-spacing: -0.5px;
}
.p10k-prompt .connector:last-of-type {
  background-color: transparent;        /* Make it blend with background */
  margin-right: -0.25rem;               /* Optional: close gap */
  z-index: 1;
}




.p10k-prompt .segment {
  display: flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  position: relative;
  z-index: 2;
  font-size: 0.95rem;
  line-height: 1;
}

.icon {
  font-size: 1.3em;
  vertical-align: middle;
  margin-right: 0.25rem;
}

.icon.logo {
  font-size: 1.2em;
}

.p10k-prompt .connector.end-connector {
  color: #000; /* Same as terminal bg so it looks like a cutoff */
  margin-left: -0.4rem;
  font-size: 1.15rem;
  z-index: 0;
  position: relative;
}
.p10k-prompt .segment:last-of-type {
  border-radius: 0 5px 5px 0;
}



.p10k-prompt .connector {
  letter-spacing: -1px;
}


html, body {
  height: 100%;
  width: 100%;
font-family: monospace;
  color: #f0f0f0;
  background: #000;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}



/* Video Background */
.video-background {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0;
  overflow: hidden;
  background: #000;
}
.video-background video {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.6) contrast(1.1) saturate(1.1);
  pointer-events: none;
}
/* Flicker Static Overlay */
.video-background::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: url('./Media/static.gif') center center;
  background-size: cover;
  opacity: 0.04;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: screen;
  animation: flicker 0.3s infinite;
}
@keyframes flicker {
  0%,19%,21%,23%,25%,54%,56%,100% { opacity: 0.04; }
  20%,22%,24%,55% { opacity: 0.1; }
}

/* Dark Overlay */
.dark-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.35);
  z-index: 1;
}

.menu {
  position: absolute;         /* keep it absolutely positioned */
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;                /* sits above the overlay */

  display: flex;
  align-items: center;
  gap: 2.6rem;
  background: rgba(0, 0, 0, 0.9); /* darker and more opaque */
  backdrop-filter: blur(6px);     /* optional, gives a frosted glass look */
  box-shadow: 0 4px 16px #00ffe122;
  padding: 0.95rem 2.1rem;
  border-radius: 14px;

  font-size: 1.16rem;
  font-family: 'Fira Mono','Consolas','Courier New',monospace;
}
.menu {
  border: none;
  box-shadow: 0 2px 15px rgba(0, 255, 225, 0.15);
}


.menu a {
  color: #00ffe1;
  position: relative;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 1px;
  padding: 2px 8px;
  transition: color .23s;
}
.menu a:hover,
.menu a.active {
  position: relative;
  background: rgba(0, 255, 225, 0.08);
  box-shadow:
    0 0 4px #00ffe1,
    0 0 8px #00ffe1,
    0 0 12px #00ffe1;
  border-radius: 6px;
  padding: 0.25rem 0.75rem;
  color: #fff; /* still makes it pop */
  transition: all 0.2s ease;
}


.certificates {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.certificates img {
  width: 50px; /* Adjust as needed */
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: transform 0.2s ease-in-out;
}

.certificates img:hover {
  transform: scale(1.05);
}

.terminal-input {
  display: flex;
  align-items: center;
  font-family: 'Fira Code', monospace;
  font-size: 1rem;
  padding-top: 0.5rem;
  color: #00ffe1;
}

.terminal-input .prompt {
  color: #00ffe1;
  margin-right: 0.5rem;
}

#terminal-input {
  background: transparent;
  border: none;
  color: #00ffe1;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  flex-grow: 1;
}

.terminal-line {
  font-family: 'Fira Code', monospace;
  color: #00ffe1;
  white-space: pre-wrap;
  margin: 0.25rem 0;
}



/* Overlay Center Content */
.overlay {
  position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 2rem;
  opacity: 1;
  transition: opacity 0.4s;
}
.overlay, #logo { min-height: 120px; }

.overlay.fade-out {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.container { max-width: 90vw; margin: 0 auto; }

/* Logo */
#logo {
  display: block;
  margin: 0 auto 1.2rem auto;
  width: clamp(60px, 10vw, 100px);
  filter: drop-shadow(0 0 12px #00fff2aa);
  animation: glow-pulse 2s ease-in-out infinite alternate;
  transition: opacity 0.4s;
}
#logo svg { width: 100%; height: auto; display: block; }
@keyframes glow-pulse {
  0%   { filter: drop-shadow(0 0 6px #00fff2aa); }
  100% { filter: drop-shadow(0 0 18px #00fff2ff);}
}

/* Headline */
h1 {
  font-size: clamp(1.75rem, 6vw, 3rem);
  margin-bottom: 1.5rem;
  color: #00ffe1;
  opacity: 0;
}

/* Paragraphs */
p {
  font-size: clamp(1rem, 3.5vw, 1.25rem);
  line-height: 1.6;
  opacity: 1;
  padding: 0 1rem;
  max-width: 700px;
  margin: 0 auto;
}

#page-content {
  position: relative;
  max-width: 900px;
  margin: 100px auto 60px auto; /* space from top, center horizontally */
  padding: 2rem;
  text-align: center;
  color: #00fff2;
  opacity: 1;
  z-index: 5;
}


#page-content h2, #page-content p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

#logo,
#headline,
#subtext,
#about {
  opacity: 0;
  transition: opacity 0.6s;
}

.about-content {
  max-width: 800px;
  margin: 1rem auto 0.5rem auto; /* tighten top and bottom */
  padding: 0.5rem 1rem;           /* less vertical padding */
  color: #00ffe1;
  font-family: 'Courier New', monospace;
}

.about-content h2 {
  text-align: left;
  margin-bottom: 0.75rem;
}

.about-content p {
  text-align: left;
  line-height: 1.45; /* slightly tighter but still readable */
  margin-bottom: 0.75rem; /* reduce spacing between paragraphs if needed */
}


/* Wraps everything (header + terminal content) */
.terminal-wrapper {
  width: 100%;
  max-width: 800px;
  background: rgba(0, 0, 0, 0.85);
  padding: 1rem;
  border-radius: 10px;
}

.terminal-header {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.35rem 0.75rem;
  font-family: 'Fira Code', monospace;
  font-size: 0.85rem;
  color: #00ffe1;
}

.terminal-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-weight: bold;
  white-space: nowrap;
}

.window-controls {
  display: flex;
  gap: 0.5rem;
}

.window-controls span {
  cursor: default;
  color: #ccc;
  font-weight: bold;
  transition: color 0.2s;
}

.window-controls span:hover {
  color: #fff;
}

.p10k-prompt {
  display: flex;
  align-items: stretch; /* stretch all blocks to the same height */
  line-height: 0;       /* remove baseline inconsistencies */
}


.segment {
  padding: 0.3rem 0.6rem;
  font-weight: bold;
  color: #000;
  position: relative;
  z-index: 1;
  white-space: nowrap;
}

.connector {
  font-family: 'Nerd Font Mono', monospace;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0 0.15rem;
  z-index: 0;
  white-space: nowrap;
}

.user {
  background: #00ff94;
  color: #000;
}
.user-to-host {
  background: #00e1ff;
  color: #00ff94;
}

.host {
  background: #00e1ff;
  color: #000;
}
.host-to-path {
  background: #ffd700;
  color: #00e1ff;
}

.path {
  background: #ffd700;
  color: #000;
}
.path-to-branch {
  background: #66ff66;
  color: #ffd700;
}

.branch {
  background: #66ff66;
  color: #000;
}

/* Command below */
.terminal-command {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 1rem;
  font-weight: 500;
  color: #00ffe1;
  white-space: pre-wrap;
  word-break: break-word;
  padding: 0.5rem 0;
  text-shadow: 0 0 3px rgba(0, 255, 225, 0.5);
}


.terminal-command .symbol {
  color: #f0c674;
  font-weight: bold;
}

.terminal-command .command {
  color: #ffffff;
}


/* Blinking cursor */
.blinking-cursor {
  display: inline-block;
  color: #00ffe1;
  margin-left: 0.25rem;
  animation: blink 1s steps(2, start) infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}


.window-controls {
  display: flex;
  gap: 0.5rem;
}

.window-controls span {
  cursor: default;
  color: #ccc;
  font-weight: bold;
  transition: color 0.2s;
}

.window-controls span:hover {
  color: #fff;
}


.blinking-cursor {
  display: inline-block;
  color: #00ffe1;
  margin-left: 0.25rem;
  animation: blink 1s steps(2, start) infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}



.video-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  cursor: pointer;
  font-size: 1em;
  margin-left: 1em;
}
.video-toggle input[type="checkbox"] {
  display: none;
}
.video-toggle .slider {
  width: 36px;
  height: 18px;
  background: #222;
  border-radius: 999px;
  position: relative;
  transition: background 0.3s;
}
.video-toggle .slider::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  left: 1px; top: 1px;
  background: #00ffe1;
  border-radius: 50%;
  transition: transform 0.3s;
}
.video-toggle input:checked + .slider {
  background: #006b66;
}
.video-toggle input:checked + .slider::before {
  transform: translateX(18px);
}
.video-toggle .toggle-label {
  font-size: 0.96em;
  color: #00ffe1;
  user-select: none;
}

/* Mobile Tweaks */
@media (max-width: 768px) {
  nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 999;
    text-align: center;
    padding-top: 1rem;
  }
 @media (max-width: 768px) {
  .menu {
    position: fixed;
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 1rem;
    background: rgba(0, 0, 0, 0.9);
    box-shadow: 0 2px 12px #00ffe122;
    border-radius: 0;
    z-index: 999;
    -webkit-overflow-scrolling: touch;
  }

  .menu a {
    font-size: 1rem;
    flex-shrink: 0;
  }

  .terminal-wrapper {
    margin-top: 140px; /* Adjust based on final menu height */
  }
}

.language-toggle {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.language-toggle button {
  background: transparent;
  border: 1px solid #00ffff;
  color: #00ffff;
  font-family: monospace;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.language-toggle button:hover {
  background: #00ffff;
  color: #000;
}
.hidden {
  display: none;
}

}
