/* Disable text selection */
* {
  -webkit-user-select: none;  /* Safari/iOS */
  -moz-user-select: none;     /* Firefox */
  -ms-user-select: none;      /* IE/Edge legacy */
  user-select: none;          /* Standard */
}

/* Stop iOS long-press callout menu */
body {
  -webkit-touch-callout: none; /* iOS Safari */
}

img {
  -webkit-user-drag: none;
  pointer-events: none; /* note: makes image unclickable */
}

#bg3d {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, sans-serif;
}

body {
  background: #060b12;
  color: #eafaff;
}

/* 3D BACKGROUND */ 
#bg3d {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
}

/* BASE */
body {
  margin: 0;
  background: radial-gradient(circle at top, #000000, #000000);
  color: #eafaff;
  font-family: system-ui, sans-serif;
}

/* CONTENT ABOVE BACKGROUND */
.container {
  position: relative;
  z-index: 2;
}

/* Hacker Glow Card */
.hacker-card {
  position: relative;
  max-width: 950px;
  margin-top: 20px;
  padding: 24px 28px;
  border-radius: 18px;

  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  overflow: hidden;
  border: 1px solid rgba(0, 255, 170, 0.4);

  box-shadow:
    0 0 10px rgba(0, 255, 170, 0.2),
    0 0 30px rgba(0, 255, 170, 0.08);

  transition: 0.3s ease;
}

/* Text styling */
#about p {
  margin: 0;
  line-height: 1.8;
  color: #d6f5f0;
}

/* Glow pulse animation */
@keyframes pulseGlow {
  0% {
    box-shadow:
      0 0 10px rgba(0, 255, 170, 0.2),
      0 0 30px rgba(0, 255, 170, 0.08);
  }
  50% {
    box-shadow:
      0 0 20px rgba(0, 255, 170, 0.6),
      0 0 60px rgba(0, 255, 170, 0.25);
  }
  100% {
    box-shadow:
      0 0 10px rgba(0, 255, 170, 0.2),
      0 0 30px rgba(0, 255, 170, 0.08);
  }
}

.hacker-card {
  animation: pulseGlow 3s infinite ease-in-out;
}

/* ===================== GOLDEN TERMINAL ABOUT CARD ===================== */

:root {
  --terminal-color: #e6b800;              /* rich golden yellow */
  --terminal-soft: rgba(30, 184, 0, 0.25);
  --terminal-glow: rgba(230, 184, 0, 0.65);
  --terminal-text: #00d0ff;               /* soft gold text */
}

/* Main Card */
.terminal-card{
  position: relative;
  max-width: 980px;
  margin-top: 28px;
  border-radius: 18px;
  overflow: hidden;

  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border: 1px solid rgba(230,184,0,0.55);

  box-shadow:
    0 0 10px var(--terminal-soft),
    0 0 35px rgba(230,184,0,0.08);

  animation: pulseGlow 3.2s infinite ease-in-out;
  isolation: isolate;
}

@keyframes pulseGlow{
  0%{
    box-shadow:
      0 0 10px var(--terminal-soft),
      0 0 35px rgba(230,184,0,0.08);
  }
  50%{
    box-shadow:
      0 0 22px var(--terminal-glow),
      0 0 80px rgba(230,184,0,0.25);
  }
  100%{
    box-shadow:
      0 0 10px var(--terminal-soft),
      0 0 35px rgba(230,184,0,0.08);
  }
}

/* Header */
.terminal-header{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;

  background: rgba(0,0,0,0.92);
  border-bottom: 1px solid rgba(230,184,0,0.30);
}

.dot{ width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.red{ background: #ff5f56; }
.yellow{ background: #ffbd2e; }
.green{ background: #27c93f; }

.terminal-title{
  margin-left: 10px;
  color: var(--terminal-color);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 14px;
  letter-spacing: 0.4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.terminal-clock{
  margin-left: auto;
  color: rgba(255, 243, 204, 0.85);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
}

/* Glitch effect on title */
.glitch{
  position: relative;
}
.glitch::before,
.glitch::after{
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  opacity: 0.55;
  pointer-events: none;
  clip-path: inset(0 0 0 0);
}
.glitch::before{
  transform: translate(1px, 0);
  color: rgba(230, 184, 0, 0.85);
  animation: glitchA 2.7s infinite linear;
}
.glitch::after{
  transform: translate(-1px, 0);
  color: rgba(255, 243, 204, 0.65);
  animation: glitchB 3.1s infinite linear;
}

@keyframes glitchA{
  0%, 100% { clip-path: inset(0 0 0 0); }
  10% { clip-path: inset(0 0 70% 0); }
  20% { clip-path: inset(20% 0 30% 0); }
  30% { clip-path: inset(60% 0 10% 0); }
  40% { clip-path: inset(10% 0 60% 0); }
  50% { clip-path: inset(40% 0 30% 0); }
  60% { clip-path: inset(0 0 75% 0); }
  70% { clip-path: inset(55% 0 5% 0); }
  80% { clip-path: inset(25% 0 45% 0); }
  90% { clip-path: inset(70% 0 8% 0); }
}
@keyframes glitchB{
  0%, 100% { clip-path: inset(0 0 0 0); }
  12% { clip-path: inset(65% 0 5% 0); }
  22% { clip-path: inset(8% 0 70% 0); }
  32% { clip-path: inset(35% 0 35% 0); }
  42% { clip-path: inset(75% 0 5% 0); }
  52% { clip-path: inset(12% 0 55% 0); }
  62% { clip-path: inset(50% 0 18% 0); }
  72% { clip-path: inset(0 0 80% 0); }
  82% { clip-path: inset(20% 0 50% 0); }
  92% { clip-path: inset(60% 0 10% 0); }
}

/* Body */
.terminal-body{
  position: relative;
  padding: 18px 22px 22px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  color: var(--terminal-text);
  line-height: 1.75;
}

/* Status row */
.scan-row{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: rgba(255, 243, 204, 0.85);
  font-size: 13px;
}
.scan-label{
  color: rgba(230,184,0,0.95);
}
.scan-text{
  color: rgba(255, 251, 204, 0.9);
}
.scan-dots span{
  display: inline-block;
  opacity: 0.2;
  animation: dotPulse 1s infinite;
}
.scan-dots span:nth-child(2){ animation-delay: 0.2s; }
.scan-dots span:nth-child(3){ animation-delay: 0.4s; }
@keyframes dotPulse{
  0%, 100% { opacity: 0.2; transform: translateY(0); }
  50% { opacity: 0.9; transform: translateY(-1px); }
}

/* Typed output */
.terminal-output{
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 14px;
  color: var(--terminal-text);
}

/* Cursor */
.cursor{
  display: inline-block;
  width: 10px;
  height: 18px;
  background: var(--terminal-color);
  margin-left: 6px;
  vertical-align: text-bottom;
  animation: blink 1s infinite;
}
@keyframes blink{
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}

/* Moving scanline */
.scanline{
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(230,184,0,0.35);
  top: -10%;
  z-index: 1;
  filter: blur(0.2px);
  animation: scanline 3.2s linear infinite;
  pointer-events: none;
}
@keyframes scanline{
  from { top: -10%; opacity: 0.0; }
  10% { opacity: 0.8; }
  50% { opacity: 0.35; }
  to { top: 110%; opacity: 0.0; }
}

/* Matrix scanlines overlay */
.terminal-card::after{
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(230,184,0,0.06) 1px, transparent 1px);
  background-size: 100% 3px;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
  animation: matrixMove 6s linear infinite;
}
@keyframes matrixMove{
  from{ background-position: 0 0; }
  to{ background-position: 0 120px; }
}

/* Binary flicker overlay */
.terminal-card .terminal-body::before{
  content: "010010 110011 001011 101001 010011 110100 001010 101011 010001 111000 001101 101010";
  position: absolute;
  inset: 0;
  padding: 18px 22px;
  color: rgba(230,184,0,0.10);
  font-size: 13px;
  letter-spacing: 2px;
  line-height: 1.9;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  animation: binaryFlicker 4.5s infinite;
}
@keyframes binaryFlicker{
  0%, 100% { opacity: 0.00; }
  8% { opacity: 0.12; }
  10% { opacity: 0.00; }
  45% { opacity: 0.08; }
  47% { opacity: 0.00; }
  70% { opacity: 0.10; }
  72% { opacity: 0.00; }
}

/* Keep real content above overlays */
.terminal-header, .terminal-body > *{
  position: relative;
  z-index: 1;
}

/* Hover sweep */
.terminal-card::before{
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 110%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(230,184,0,0.20) 45%,
    transparent 100%
  );
  transform: skewX(-18deg);
  pointer-events: none;
  z-index: 0;
}
.terminal-card:hover::before{
  animation: sweep 1.1s forwards;
}
@keyframes sweep{
  from{ left: -120%; }
  to{ left: 140%; }
}

/* Responsive */
@media (max-width: 768px){
  .terminal-title{ font-size: 13px; }
  .terminal-body{ padding: 16px; }
  .terminal-output{ font-size: 13px; }
}

.navbar{
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 14px 24px;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(10px);
}

.nav-left{
  position: absolute;
  left: 24px;
  font-weight: 700;
  letter-spacing: 1px;
}

.navbar-typing {
  font-weight: bold;
  font-style: italic;
  color: #ffffff;
  font-size: 16px;
  letter-spacing: 1px;
  margin-left: 20px;
  white-space: nowrap;
}

/* Optional blinking cursor */
.navbar-typing::after {
  content: "|";
  margin-left: 4px;
  animation: blinkNav 1s infinite;
}

@keyframes blinkNav {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}

/* hamburger button hidden on desktop */
.nav-toggle{
  display: none;
  background: none;
  border: none;
  color: inherit;
  font-size: 26px;
  cursor: pointer;
}

/* desktop links */
.nav-links{
  display: flex;
  gap: 18px;
  list-style: none;
}

.nav-links a{
  text-decoration: none;
  color: inherit;
  font-size: 14px;
  opacity: 0.85;
}

.nav-links a:hover{
  opacity: 1;
  color: #ffcc00;
}

/* MOBILE MENU */
@media (max-width: 700px){
  .nav-toggle{
    display: block; /* show hamburger */
  }

  .nav-links{
    display: none; /* hidden until open */
    position: absolute;
    top: 58px;
    right: 12px;
    width: 200px;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    border-radius: 12px;
    background: rgba(0,0,0,0.85);
    border: 1px solid rgba(255,255,255,0.08);
  }

  .nav-links.open{
    display: flex; /* show when toggled */
  }
}


/* LAYOUT */
.container {
  max-width: 900px;
  margin: auto;
  padding: 40px 16px;
}

section {
  margin-bottom: 60px;
}

/* PROFILE */
.profile {
  display: flex;
  flex-direction: column; /* 👈 stack */
  align-items: center;    /* 👈 center */
  text-align: center;
  gap: 18px;
}

.photo-wrapper {
  width: 200px;
  height: 200px;
  border-radius: 16px;
  padding: 4px;
  background: linear-gradient(135deg,#d9db4b,#265e16f8);
}

.photo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.intro-name {
  transform: translateY(-40px);
  opacity: 0;
}

/* ICONS (top profile icons) */
.icons a {
  color: white;
  margin-right: 12px;
  font-size: 21px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.icons a:hover {
  color: #00ffee;
  transform: scale(1.15);
  text-shadow: 0 0 8px #00ffee;
}


/* CONTACT ICON WRAPPER */
.contact-icons {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
}


/* CONTACT ICON BASE STYLE */
.contact-icons a {
  text-decoration: none;
  color: white;
  font-size: 20px;

  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.35s ease;
}


/* CONTACT ICON HOVER EFFECT */
.contact-icons a:hover {
  background: #00ffee;
  color: #060b12;
  transform: translateY(-6px) scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 255, 238, 0.4);
}

/* HOVER EFFECT */
.contact-icons a:hover {
  color: #00ffee;
  background: rgba(0, 255, 238, 0.15);
  transform: translateY(-6px) scale(1.15);
  box-shadow: 0 0 15px #00ffee;
}

/* STATUS */
.status-pill {
  display: inline-block;
  margin: 8px 0;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(0,255,238,0.15);
  color: #00ffee;
}

/* GRID */
.grid, .cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 20px;
}

.project, .cert {
  padding: 16px;
  background: rgba(255,255,255,0.04);
  border-left: 3px solid #00ffee;
  border-radius: 10px;
}
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  margin-top: 24px;
}

/* CERT CARD */
.cert-card {
  background: rgba(255,255,255,0.04);
  border-radius: 14px;
  padding: 14px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cert-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 12px;
}

/* CERT NAME */
.cert-card span {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
}

/* EDUCATION */
.education-grid {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

.education-card {
  background: rgba(255,255,255,0.04);
  border-left: 3px solid #ffcc00; /* golden */
  padding: 16px;
  border-radius: 10px;
  transition: 0.3s ease;
}

/* Make entire card slightly interactive */
.education-card:hover {
  background: rgba(255,255,255,0.06);
  transform: translateY(-2px);
}

/* Title */
.education-card h3 {
  margin-bottom: 6px;
  font-size: 1rem;
}

/* Remove default blue link style */
.education-card h3 a {
  color: #ffffff;              /* white */
  text-decoration: none;       /* remove underline */
  font-weight: inherit;
  transition: 0.3s ease;
}

/* Prevent purple visited */
.education-card h3 a:visited {
  color: #ffffff;
}

/* Golden hover effect */
.education-card h3 a:hover {
  color: #ffcc00;
}

/* Paragraph styling */
.education-card p {
  opacity: 0.8;
}

/* Date styling */
.education-card span {
  font-size: 0.85rem;
  opacity: 0.6;
}
/* HOVER EFFECT */
.cert-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 20px rgba(0,255,238,0.25);
  border-color: #00ffee;
}

/* CONTACT */
#contact {
  text-align: center;
  margin-bottom: 30px; /* keeps footer close */
}

.contact-form {
  max-width: 520px;
  margin: 0 auto;   /* centers the form */
  display: grid;
  gap: 12px;
}


.contact-form input,
.contact-form textarea {
  padding: 12px;
  border-radius: 8px;
  border: none;
}
.contact-wrapper {
  max-width: 520px;
  margin: auto;
}

.contact-form button {
  background: #e4d152a7;
  border: none;
  padding: 12px;
  font-weight: bold;
}

/*below icon*/
.contact-icons {
  margin-top: 16px;
  margin-bottom: 8px; /* 👈 keeps footer close */
  display: flex;
  justify-content: center;
  gap: 18px;
}

section {
  scroll-margin-top: 80px; /* height of navbar */
}

.contact-icons a {
  color: white;
  font-size: 20px;
}

/* FOOTER */
footer {
  margin-top: 8px;     /* 👈 small gap only */
  padding-bottom: 16px;
  text-align: center;
  opacity: 0.6;
}


/* MOBILE */
@media(max-width:600px){
  .profile{flex-direction:column;text-align:center;}
}
