:root {
  --bg: #060a0f;
  --surface: #0c1117;
  --border: #1a2530;
  --accent: #00e5ff;
  --accent2: #ff6b35;
  --text: #c9d6df;
  --muted: #4a6274;
  --mono: 'Share Tech Mono', monospace;
  --sans: 'Syne', sans-serif;
  --body: 'DM Sans', sans-serif;
}

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

/* Hide scrollbar — Chrome, Safari, Edge */
::-webkit-scrollbar { display: none; }

html {
  scroll-behavior: smooth;
  -ms-overflow-style: none;   /* IE / Edge */
  scrollbar-width: none;      /* Firefox */
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-weight: 300;
  overflow-x: hidden;
  cursor: none;
}

/* ── CUSTOM CURSOR ── */
.cursor {
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  transition: all 0.18s ease;
  opacity: 0.5;
}

/* Remove custom cursor entirely on touch / mobile */
@media (hover: none), (pointer: coarse) {
  .cursor, .cursor-ring { display: none !important; }
  body { cursor: auto; }
}

/* ── NOISE OVERLAY ── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 1000;
}

/* ── SCANLINES ── */
body::after {
  content: '';
  position: fixed; inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,229,255,0.015) 2px, rgba(0,229,255,0.015) 4px);
  pointer-events: none;
  z-index: 999;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; width: 100%;
  padding: 1rem 2rem;
  display: flex; justify-content: space-between; align-items: center;
  z-index: 200;
  background: rgba(6,10,15,0.97);
  border-bottom: 1px solid rgba(0,229,255,0.08);
  backdrop-filter: blur(8px);
}
.nav-logo {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.12em;
}
.nav-links {
  display: flex; gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }

/* ── HAMBURGER ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 300;
}
.hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--accent);
  transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── MOBILE MENU ── */
.mobile-menu {
  display: none;
  position: fixed; inset: 0; top: 54px;
  background: rgba(6,10,15,0.98);
  z-index: 150;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--mono);
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--accent); }

/* ── HERO ── */
#hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 7rem 4rem 4rem;
  position: relative;
  overflow: hidden;
  gap: 2rem;
}

.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,229,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.hero-left { position: relative; z-index: 2; }

.hero-tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.hero-tag::before {
  content: '';
  width: 20px; height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

.hero-name {
  font-family: var(--sans);
  font-size: clamp(2.6rem, 5.5vw, 5.5rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 0.5rem;
  white-space: nowrap;
}
.hero-name span {
  color: transparent;
  -webkit-text-stroke: 1px var(--accent);
  display: block;
}

.hero-title {
  font-family: var(--mono);
  font-size: clamp(0.6rem, 1.4vw, 0.85rem);
  color: var(--accent2);
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  display: flex; align-items: flex-start; gap: 0.4rem;
  flex-wrap: wrap;
  line-height: 1.5;
}

.blink { animation: blink 1.1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero-desc {
  font-size: clamp(0.85rem, 1.4vw, 1rem);
  line-height: 1.75;
  color: var(--text);
  max-width: 480px;
  margin-bottom: 2rem;
  opacity: 0.85;
}

.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-primary {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  padding: 0.8rem 1.5rem;
  background: var(--accent);
  color: #000;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 700;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-primary:hover { background: #fff; transform: translateY(-2px); }

.btn-ghost {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  padding: 0.8rem 1.5rem;
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.2s;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  white-space: nowrap;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ── TERMINAL ── */
.hero-right { display: flex; justify-content: flex-end; position: relative; z-index: 2; min-width: 0; }
.terminal {
  width: 100%;
  max-width: 460px;
  background: #0a0f14;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0,229,255,0.05), 0 20px 60px rgba(0,0,0,0.5);
  min-width: 0;
}
.terminal-header {
  background: #111820;
  padding: 0.65rem 1rem;
  display: flex; align-items: center; gap: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.t-dot { width: 10px; height: 10px; border-radius: 50%; }
.t-dot.r { background: #ff5f57; }
.t-dot.y { background: #febc2e; }
.t-dot.g { background: #28c840; }
.terminal-title { font-family: var(--mono); font-size: 0.68rem; color: var(--muted); margin-left: 0.5rem; }
.terminal-body {
  padding: 1.25rem;
  font-family: var(--mono);
  font-size: clamp(0.68rem, 1.4vw, 0.8rem);
  line-height: 1.9;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}
.t-line {
  display: flex;
  gap: 0.5rem;
  min-width: 0;
  overflow: hidden;
}
.t-prompt { color: var(--accent2); flex-shrink: 0; }
.t-cmd {
  color: #fff;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.t-out {
  color: var(--muted);
  padding-left: 1rem;
  white-space: pre-wrap;
  word-break: break-all;
  overflow-wrap: break-word;
  min-width: 0;
  overflow: hidden;
}
.t-out.hi { color: var(--accent); }
.t-out.warn { color: var(--accent2); }

/* ── GLOW LINE ── */
.glow-line {
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin: 1.5rem 0;
  opacity: 0.3;
}

/* ── SECTIONS ── */
section { padding: 5rem 4rem; position: relative; }

.section-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.section-title {
  font-family: var(--sans);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 2.5rem;
  letter-spacing: -0.02em;
}

/* ── SKILLS ── */
#skills { background: var(--surface); }
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5px;
  background: var(--border);
  align-items: stretch;
}
.skill-card {
  background: var(--surface);
  padding: 1.6rem;
  transition: background 0.2s;
  display: flex;
  flex-direction: column;
}
.skill-card:hover { background: #111820; }
.skill-desc { font-size: 0.78rem; color: var(--muted); line-height: 1.6; flex: 1; }
.skill-icon { font-size: 1.3rem; margin-bottom: 0.75rem; }
.skill-name { font-family: var(--sans); font-size: 0.88rem; font-weight: 700; color: #fff; margin-bottom: 0.35rem; }
.skill-bar { margin-top: 0.85rem; height: 2px; background: var(--border); }
.skill-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width 1s ease; }

/* ── TIMELINE ── */
.timeline { position: relative; }
.timeline::before {
  content: '';
  position: absolute; left: 11px; top: 4px; bottom: 0;
  width: 1px;
  background: var(--border);
}
.tl-item { padding-left: 3rem; padding-bottom: 2.5rem; position: relative; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute; left: 0; top: 4px;
  width: 22px; height: 22px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
}
.tl-dot::after { content: ''; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }
.tl-date { font-family: var(--mono); font-size: 0.65rem; color: var(--accent2); letter-spacing: 0.1em; margin-bottom: 0.35rem; }
.tl-title { font-family: var(--sans); font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 0.2rem; }
.tl-org { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); margin-bottom: 0.6rem; }
.tl-desc { font-size: 0.875rem; line-height: 1.7; color: var(--text); opacity: 0.8; }

/* ── PROJECTS ── */
#projects { background: var(--surface); }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--border);
}
.project-card {
  background: var(--surface); padding: 1.8rem;
  position: relative; overflow: hidden; transition: background 0.2s;
}
.project-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease;
}
.project-card:hover::before { transform: scaleX(1); }
.project-card:hover { background: #0f161d; }
.project-num { font-family: var(--mono); font-size: 0.63rem; color: var(--muted); margin-bottom: 0.85rem; }
.project-title { font-family: var(--sans); font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: 0.6rem; }
.project-desc { font-size: 0.83rem; line-height: 1.7; color: var(--text); opacity: 0.75; margin-bottom: 1.1rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag { font-family: var(--mono); font-size: 0.63rem; padding: 0.22rem 0.55rem; border: 1px solid var(--border); color: var(--muted); letter-spacing: 0.05em; }
.tag.accent { border-color: rgba(0,229,255,0.3); color: var(--accent); }

/* ── ACHIEVEMENTS ── */
.ach-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.ach-item {
  display: flex; gap: 0.85rem; padding: 1.1rem;
  border: 1px solid var(--border); transition: border-color 0.2s; align-items: flex-start;
}
.ach-item:hover { border-color: rgba(0,229,255,0.3); }
.ach-icon { font-family: var(--mono); font-size: 0.85rem; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.ach-text { font-size: 0.83rem; line-height: 1.6; color: var(--text); opacity: 0.8; }

/* ── CONTACT ── */
#contact { background: var(--bg); text-align: center; }
.contact-inner { max-width: 640px; margin: 0 auto; }

.contact-email {
  font-family: var(--mono);           /* monospace keeps it compact */
  font-size: clamp(0.85rem, 2.2vw, 1.35rem);
  font-weight: 400;
  color: var(--accent);
  text-decoration: none;
  display: inline-block;
  margin: 1.2rem 0 1.8rem;
  white-space: nowrap;                /* never break mid-word */
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.contact-email:hover { color: #fff; }

.social-links {
  display: flex; justify-content: center; gap: 1rem;
  margin-bottom: 2.5rem; flex-wrap: wrap;
}
.social-link {
  font-family: var(--mono); font-size: 0.72rem; color: var(--muted);
  text-decoration: none; letter-spacing: 0.1em;
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 1rem; border: 1px solid var(--border);
  transition: all 0.2s; white-space: nowrap;
}
.social-link:hover { color: var(--accent); border-color: rgba(0,229,255,0.3); }

/* ── FOOTER ── */
footer {
  padding: 1.25rem 2rem;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 0.75rem;
}
.footer-text { font-family: var(--mono); font-size: 0.68rem; color: var(--muted); letter-spacing: 0.08em; }
.footer-status { display: flex; align-items: center; gap: 0.5rem; font-family: var(--mono); font-size: 0.68rem; color: #28c840; }
.status-dot { width: 6px; height: 6px; background: #28c840; border-radius: 50%; animation: pulse 2s ease infinite; }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

/* ── ANIMATIONS ── */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ════════════════════════════
   RESPONSIVE BREAKPOINTS
════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
  #hero { padding: 7rem 2.5rem 4rem; gap: 2rem; }
  section { padding: 5rem 2.5rem; }
  nav { padding: 1rem 2.5rem; }
}

/* Mobile */
@media (max-width: 768px) {
  nav { padding: 0.9rem 1.25rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }

  #hero {
    grid-template-columns: 1fr;
    min-height: 100svh;
    padding: 5.5rem 1.25rem 3rem;
    gap: 2.5rem;
    align-content: center;
  }
  .hero-right { justify-content: center; }
  .terminal { max-width: 100%; min-width: 0; }
  .terminal-header { padding: 0.5rem 0.75rem; }
  .terminal-title { font-size: 0.58rem; }
  .terminal-body { font-size: 0.65rem; line-height: 1.8; padding: 0.9rem; overflow-x: hidden; }

  .hero-name { font-size: 11vw; white-space: nowrap; }
  .hero-title { font-size: clamp(0.6rem, 2.8vw, 0.78rem); letter-spacing: 0.04em; }
  .hero-desc  { font-size: 0.9rem; }

  section { padding: 3.5rem 1.25rem; }
  .section-title { margin-bottom: 1.75rem; }

  .skills-grid { grid-template-columns: 1fr 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .ach-grid { grid-template-columns: 1fr; }

  .contact-email {
    white-space: normal;
    word-break: break-all;
    font-size: clamp(0.85rem, 4vw, 1.1rem);
  }

  footer { padding: 1rem 1.25rem; flex-direction: column; text-align: center; }
}

/* Small phones */
@media (max-width: 480px) {
  .hero-name { font-size: 11vw; letter-spacing: -0.03em; white-space: nowrap; }
  .hero-tag  { font-size: 0.58rem; letter-spacing: 0.08em; }
  .hero-title { font-size: 0.62rem; }

  .skills-grid { grid-template-columns: 1fr; }

  .hero-ctas { flex-direction: column; }
  .btn-primary, .btn-ghost {
    text-align: center;
    display: block;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  }

  .tl-item { padding-left: 2.25rem; }
  .social-links { flex-direction: column; align-items: center; }
  .social-link { width: 100%; justify-content: center; }
}
