/* Reset & Base */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.page-wrapper {
  position: relative;
  overflow: hidden;
}

html, body {
  overflow-x: hidden;
   overflow-y: auto;
}
body {
  transform: scale(1.02);
  border-radius: 50px;
  overflow: hidden;
  box-shadow: inset 0 0 100px rgba(0, 255, 0, 0.2), inset 0 0 50px rgba(0, 255, 0, 0.15);
  filter: contrast(1.1) brightness(1.1);
  backdrop-filter: blur(1px);
  background: #000;
  color: white;
  font-family: 'Courier New', monospace;
  line-height: 1.5;
  text-align: center;
  overflow: hidden;
  position: relative;
}

body::after {
  content: "";
  position: fixed;
  top: -200%;
  left: -200%;
  width: 400%;
  height: 400%;
  pointer-events: none;
  background: repeating-linear-gradient(
    5deg,
    rgba(0, 255, 0, 0.08) 0px,
    rgba(0, 255, 0, 0.08) 2px,
    transparent 2px,
    transparent 6px
  );
  animation: diagonalScan 2s linear infinite, flicker 45.5s infinite;
  z-index: 9999;
  opacity: 0.4;
}

@keyframes diagonalScan {
  0%   { transform: translate(0%, 0%); }
  100% { transform: translate(50%, 50%); }
}

.crt-sweep {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(0,255,0,0.2);
  z-index: 9998;
  pointer-events: none;
  transition: left 2s linear;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Header / Dropdown Menu */
header {
  background: #111;
  padding: 20px;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

#main-name {
  font-size: 1.5rem;
  font-weight: bold;
  color: lime;
  text-shadow: 0 0 8px lime;
  transition: opacity 0.2s ease;
}

.id-name {
  font-size: 2rem;
  font-weight: bold;
  color: lime;
  text-shadow: 0 0 8px lime;
  margin-bottom: 10px;
  transition: opacity 0.2s ease;
}

#start-title {
  transition: opacity 0.2s ease;
}

.dropdown {
  position: relative;
}

.dropbtn {
  background: transparent;
  color: white;
  padding: 10px 20px;
  border: 2px solid lime;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dropbtn:hover {
  background: lime;
  color: black;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background: #222;
  min-width: 160px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.dropdown-content a {
  display: block;
  padding: 12px 16px;
  color: white;
}

.dropdown-content a:hover {
  background: lime;
  color: black;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Hero / Home Page */
.hero.full-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(100vh - 80px);
  background: url('../images/your-bg.jpg') center/cover no-repeat;
  position: relative;
  color: white;
}

.hero-content {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  padding: 0 20px;
}

.hero-text h1 {
  color: lime;
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-shadow: 0 0 8px lime;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.hero-text .cta {
  font-size: 1.1rem;
  padding: 14px 28px;
  border: 2px solid lime;
  background: transparent;
  color: lime;
  font-weight: bold;
  transition: background 0.3s, color 0.3s;
  display: inline-block;
  margin: 10px;
}

.hero-text .cta:hover {
  background: lime;
  color: #111;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.hero-content,
.hero-content * {
  position: relative;
  z-index: 1;
}

/* ID Card Section */
.id-card {
  background: #111;
  border: 2px dotted lime;
  border-radius: 10px;
  padding: 30px 20px;
  max-width: 300px;
  margin: 0 auto 40px;
  box-shadow: 0 0 15px lime;
  background-size: 20px 20px;
}

.id-photo {
  width: 100%;
  height: 200px;
  border: 2px dashed white;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
}

#roles {
  font-size: 1.2rem;
  color: #ccc;
}

/* Layout Containers */
.container {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  background: #111;
  border-radius: 10px;
  border: 2px solid lime;
  box-shadow: 0 0 15px lime;
  background-size: 20px 20px;
}

.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.skill-card {
  background: #111;
  border: 2px dashed lime;
  padding: 20px;
  box-shadow: 0 0 10px lime;
  background-size: 20px 20px;
}

.cert-list {
  list-style: none;
  padding: 0;
  color: lime;
  text-shadow: 0 0 5px lime;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  background: #111;
  margin-top: 60px;
  color: white;
  border-top: 2px dashed lime;
}

/* A-1: Retro Start Screen */
.retro-screen {
  position: fixed;
  inset: 0;
  background: black;
  color: #00ff00;
  font-family: 'Courier New', monospace;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  text-align: center;
}

.glow-text {
  font-size: 3rem;
  text-shadow: 0 0 10px #0f0, 0 0 20px #0f0;
  margin-bottom: 20px;
  transition: opacity 0.2s ease;
}

.blink-text {
  font-size: 1.5rem;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes scanlines {
  0% { background-position: 0 0; }
  100% { background-position: 0 100%; }
}

@keyframes flicker {
  0%   { opacity: 0.95; filter: brightness(1); }
  5%   { opacity: 0.4;  filter: brightness(0.8); }
  10%  { opacity: 0.75; filter: brightness(1.2); }
  15%  { opacity: 0.3;  filter: brightness(0.6); }
  20%  { opacity: 0.85; filter: brightness(1); }
  30%  { opacity: 0.6;  filter: brightness(0.9); }
  40%  { opacity: 1;    filter: brightness(1.3); }
  50%  { opacity: 0.45; filter: brightness(0.7); }
  60%  { opacity: 0.9;  filter: brightness(1.1); }
  70%  { opacity: 0.4;  filter: brightness(0.8); }
  80%  { opacity: 1;    filter: brightness(1.2); }
  90%  { opacity: 0.7;  filter: brightness(0.95); }
  100% { opacity: 0.95; filter: brightness(1); }
}

/* ========================= */
/* TV Scanline Effect – G-2 */
/* ========================= */


.video-scratch-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10001;
  background-image: 
    repeating-linear-gradient(0deg, transparent, transparent 1px, rgba(255,255,255,0.05) 1px, rgba(255,255,255,0.05) 2px),
    repeating-linear-gradient(90deg, transparent, transparent 3px, rgba(255,255,255,0.03) 3px, rgba(255,255,255,0.03) 4px);
  background-size: 100% 100%, 200px 200px;
  background-position: top left, calc(100% * var(--rand-x, 0.5)) calc(100% * var(--rand-y, 0.5));
  animation: scratchJitter 0.25s steps(1) infinite;
  mix-blend-mode: screen;
  opacity: 0.35;
}

@keyframes scratchJitter {
  0%   { --rand-x: 0.1; --rand-y: 0.1; }
  20%  { --rand-x: 0.6; --rand-y: 0.4; }
  40%  { --rand-x: 0.2; --rand-y: 0.8; }
  60%  { --rand-x: 0.7; --rand-y: 0.2; }
  80%  { --rand-x: 0.4; --rand-y: 0.6; }
  100% { --rand-x: 0.5; --rand-y: 0.3; }
}

/* === [ M-1 ] Mobile Baseline Fixes (<= 768px) === */
@media (max-width: 768px) {
  /* allow normal page flow/scrolling */
  html, body {
    overflow-x: hidden;
    overflow-y: auto;
  }
  body {
    transform: none;       /* remove scale shrink/zoom on phones */
    border-radius: 0;      /* no rounded viewport edges on phones */
    box-shadow: none;      /* avoid clipped shadows on small screens */
  }

  /* make images behave */
  img, video, iframe {
    max-width: 100%;
    height: auto;
  }

  /* header/nav breathing room */
  header nav {
    flex-wrap: wrap;
    gap: 12px;
    padding: 0 10px;
  }
  .dropbtn {
    padding: 10px 14px;    /* bigger tap target */
  }

  /* containers & text sizing */
  .container {
    max-width: 100%;
    margin: 16px auto;
    padding: 16px;
  }
  .glow-text {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }

  /* about page lists spacing */
  .about-section ul {
    padding-left: 0;
    margin-left: 0;
  }
  .about-section li {
    margin: 8px 0;
    line-height: 1.4;
  }

  /* cards & grids */
  .skills {
    grid-template-columns: 1fr; /* single column on phones */
    gap: 12px;
  }
  .skill-card {
    padding: 14px;
  }

  /* hero/layout (if reused) */
  .hero.full-screen {
    height: auto;
    padding: 32px 0;
    background-size: cover;
  }
  .hero-content {
    display: grid;
    grid-template-columns: 1fr; /* stack */
    gap: 20px;
    padding: 0 16px;
  }
  .id-card {
    max-width: 100%;
  }
}

/* === [ M-2 ] Small Phone Tighten (<= 400px) === */
@media (max-width: 400px) {
  #main-name { font-size: 1.1rem; }
  .dropbtn   { font-size: 0.95rem; }
  .glow-text { font-size: clamp(1.4rem, 7vw, 1.8rem); }
}

