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

/* ── DESIGN TOKENS ── */
:root {
  --bg:        #0a0c10;
  --bg2:       #0f1117;
  --bg3:       #161b27;
  --border:    rgba(255,255,255,0.07);
  --border2:   rgba(255,255,255,0.13);
  --accent:    #00d4ff;
  --accent2:   #ff4f78;
  --accent3:   #7fff6e;
  --text:      #e8eaf2;
  --muted:     #6a7190;
  --card-bg:   #12161f;
  --ff-head:   'Rajdhani', sans-serif;
  --ff-mono:   'Space Mono', monospace;
  --ff-body:   'Inter', sans-serif;
  --radius:    0px;
}

/* ── BASE ── */
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

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

/* ── GRID BG ── */
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ── UTILITY ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 5%;
}

section { position: relative; z-index: 1; }

#nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
  height: 60px;
  border-bottom: 1px solid var(--border);
  background: rgba(10,12,16,0.85);
  backdrop-filter: blur(14px);
}

.nav-logo {
  font-family: var(--ff-head);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-decoration: none;
}
.nav-logo span { color: var(--text); }

#nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
}
#nav-links a {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}
#nav-links a:hover { color: var(--accent); }

.nav-cta {
  font-family: var(--ff-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 7px 18px;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.nav-cta:hover { background: var(--accent); color: var(--bg); }

#hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding-top: 60px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: center;
  width: 100%;
}

/* badge */
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(0,212,255,0.3);
  padding: 5px 14px;
  margin-bottom: 24px;
}
.hero-badge .blink {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 1.4s ease-in-out infinite;
  flex-shrink: 0;
}
.hero-badge.inactive { color: var(--muted); border-color: rgba(255,255,255,0.15); }
.hero-badge.inactive .blink { background: var(--muted); animation: none; }

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

/* title */
.hero-title {
  font-family: var(--ff-head);
  font-size: clamp(52px, 7vw, 90px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.01em;
  margin-bottom: 24px;
}
.hero-title .t-name { display: block; color: var(--text); }
.hero-title .t-role {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1px var(--accent);
  font-size: 0.72em;
}

.hero-desc {
  color: var(--muted);
  font-size: 15px;
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* avatar */
.hero-avatar-wrap {
  position: relative;
  display: flex; justify-content: center; align-items: center;
}
.avatar-ring {
  position: absolute;
  width: 320px; height: 320px;
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 50%;
  animation: spin 18s linear infinite;
}
.avatar-ring::before {
  content: '';
  position: absolute; top: -4px; left: 50%;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  transform: translateX(-50%);
}
.avatar-ring-2 {
  width: 260px; height: 260px;
  border-color: rgba(255,79,120,0.15);
  animation-duration: 10s;
  animation-direction: reverse;
}
@keyframes spin { to { transform: rotate(360deg); } }

.avatar-box {
  width: 200px; height: 200px;
  background: var(--bg3);
  border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  position: relative;
}
.avatar-placeholder {
  font-family: var(--ff-head);
  font-size: 64px; font-weight: 700;
  color: var(--accent);
  user-select: none;
}
.avatar-tag {
  position: absolute; bottom: -30px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--ff-mono); font-size: 10px;
  letter-spacing: 0.12em; color: var(--muted);
  white-space: nowrap;
}

#stats {
  padding: 80px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  padding: 32px 24px;
  border-right: 1px solid var(--border);
  text-align: center;
}
.stat-item:last-child { border-right: none; }

.stat-num {
  font-family: var(--ff-head);
  font-size: 52px; font-weight: 700;
  line-height: 1;
  color: var(--accent);
  display: block; margin-bottom: 6px;
}
.stat-label {
  font-family: var(--ff-mono);
  font-size: 10px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--muted);
}

.section-header { margin-bottom: 48px; }
.section-tag {
  font-family: var(--ff-mono);
  font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 10px; display: block;
}
.section-title {
  font-family: var(--ff-head);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700; letter-spacing: 0.02em;
  line-height: 1.05; color: var(--text);
}
.section-line {
  width: 48px; height: 2px;
  background: var(--accent);
  margin-top: 14px;
}

/* FEEDBACK SECTION */
#feedback { padding: 100px 0; }

.feedback-container {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
}

.feedback-inner {
  display: flex;
  width: max-content;
  animation: feedback-container 15s linear infinite;
}

.feeback__group {
  display: flex;
}

@keyframes feedback-container {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* PROJECT SECTION */

#projects { padding: 100px 0; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  position: relative; overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
  cursor: pointer; text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
}
.project-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.project-card:hover .project-overlay { opacity: 1; }
.project-card:hover .project-thumb img { transform: scale(1.05); }

.project-thumb {
  height: 200px; background: var(--bg3);
  overflow: hidden; position: relative;
}
.project-thumb img { transition: transform 0.4s ease; }

.project-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-head); font-size: 48px; font-weight: 700;
  letter-spacing: 0.05em;
}

.project-overlay {
  position: absolute; inset: 0;
  background: rgba(0,212,255,0.08);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.25s;
}
.project-overlay-icon {
  width: 48px; height: 48px;
  border: 1.5px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 20px;
}

.project-status {
  position: absolute; top: 12px; right: 12px;
  font-family: var(--ff-mono); font-size: 9px;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 10px;
}
.status-live { background: rgba(127,255,110,0.15); color: var(--accent3); border: 1px solid rgba(127,255,110,0.3); }
.status-dev  { background: rgba(255,79,120,0.12);  color: var(--accent2); border: 1px solid rgba(255,79,120,0.3); }
.status-done { background: rgba(255,255,255,0.06); color: var(--muted);   border: 1px solid var(--border); }
.status-stop { background: rgba(255,255,255,0.06); color: rgba(245, 22, 6, 0.526); border: 1px solid rgba(255,79,120,0.12); }

.project-body { padding: 20px; flex: 1; }
.project-name {
  font-family: var(--ff-head); font-size: 22px;
  font-weight: 600; letter-spacing: 0.04em;
  margin-bottom: 6px; color: var(--text);
}
.project-desc { font-size: 13px; color: var(--muted); line-height: 1.7; margin-bottom: 16px; }

.project-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.ptag {
  font-family: var(--ff-mono); font-size: 9px;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 3px 10px;
  border: 1px solid var(--border2); color: var(--muted);
}

.project-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.project-visits { font-family: var(--ff-mono); font-size: 10px; color: var(--muted); }
.project-link {
  font-family: var(--ff-mono); font-size: 10px;
  color: var(--accent); text-decoration: none; letter-spacing: 0.08em;
}
.project-link:hover { text-decoration: underline; }

#media { padding: 100px 0; border-top: 1px solid var(--border); }

.media-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.media-featured {
  position: relative; background: var(--card-bg);
  border: 1px solid var(--border); overflow: hidden;
  aspect-ratio: 16/9;
}
.media-featured iframe,
.media-featured video { width: 100%; height: 100%; display: block; border: none; }
.media-featured-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px; color: var(--muted);
}
.play-btn {
  width: 64px; height: 64px;
  border: 2px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.play-btn::after {
  content: '';
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent var(--accent);
  margin-left: 4px;
}
.media-caption {
  font-family: var(--ff-mono); font-size: 10px;
  color: var(--muted); letter-spacing: 0.1em;
  margin-top: 10px; text-align: center;
}

.media-thumb-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
}
.media-thumb {
  background: var(--card-bg); border: 1px solid var(--border);
  overflow: hidden; aspect-ratio: 16/9;
  position: relative; cursor: pointer;
  transition: border-color 0.2s;
}
.media-thumb:hover { border-color: var(--accent); }

.media-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-head); font-size: 13px;
  letter-spacing: 0.08em; color: var(--muted);
}

.sub-media-grid {
  padding-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
}

.sub-media-thumb {
  background: var(--card-bg); border: 1px solid var(--border);
  overflow: hidden; aspect-ratio: 16/9;
  position: relative; cursor: pointer;
  transition: border-color 0.2s;
}

.sub-media-thumb:hover { border-color: var(--accent); }

.sub-media-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-head); font-size: 13px;
  letter-spacing: 0.08em; color: var(--muted);
}

.sub-media-grid iframe,
.sub-media-grid video { width: 100%; height: 100%; display: block; border: none; }

#skills { padding: 100px 0; border-top: 1px solid var(--border); }

.skills-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: start;
}

.skill-cat-label {
  font-family: var(--ff-mono); font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.skill-bars { display: flex; flex-direction: column; gap: 14px; }

.skill-row { display: flex; align-items: center; gap: 16px; }
.skill-name {
  font-family: var(--ff-body); font-size: 13px;
  color: var(--text); width: 130px; flex-shrink: 0;
}
.skill-bar-track {
  flex: 1; height: 3px; background: var(--border); position: relative;
}
.skill-bar-fill {
  height: 100%; background: var(--accent);
  transition: width 1.2s cubic-bezier(0.25, 1, 0.5, 1);
  width: 0;
}
.skill-bar-fill.accent2 { background: var(--accent2); }

.skill-pct {
  font-family: var(--ff-mono); font-size: 10px;
  color: var(--muted); width: 30px; text-align: right;
}

.tools-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.tool-pill {
  font-family: var(--ff-mono); font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 7px 16px; border: 1px solid var(--border2); color: var(--muted);
  transition: border-color 0.2s, color 0.2s;
}
.tool-pill:hover { border-color: var(--accent); color: var(--accent); }


#contact { padding: 100px 0; border-top: 1px solid var(--border); }

.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }

.contact-desc { color: var(--muted); font-size: 15px; line-height: 1.9; margin-bottom: 36px; }

.social-links { display: flex; flex-direction: column; }
.social-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0; border-bottom: 1px solid var(--border);
  text-decoration: none; color: var(--text); transition: color 0.2s;
}
.social-link:first-child { border-top: 1px solid var(--border); }
.social-link:hover { color: var(--accent); }

.social-link-left { display: flex; align-items: center; gap: 16px; }
.social-icon {
  width: 36px; height: 36px;
  border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-family: var(--ff-mono);
}
.social-name { font-family: var(--ff-head); font-size: 18px; font-weight: 600; letter-spacing: 0.04em; }
.social-handle { font-family: var(--ff-mono); font-size: 10px; color: var(--muted); letter-spacing: 0.08em; }
.social-arrow { font-size: 18px; color: var(--muted); transition: color 0.2s, transform 0.2s; }
.social-link:hover .social-arrow { color: var(--accent); transform: translateX(4px); }

/* form */
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label {
  font-family: var(--ff-mono); font-size: 10px;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted);
}
.form-input, .form-textarea {
  background: var(--card-bg); border: 1px solid var(--border);
  color: var(--text); font-family: var(--ff-mono); font-size: 14px;
  padding: 12px 16px; outline: none; width: 100%;
  transition: border-color 0.2s; resize: none;
}
.form-input:focus, .form-textarea:focus { border-color: var(--accent); }
.form-textarea { height: 120px; }

.btn-primary {
  font-family: var(--ff-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 13px 28px;
  background: var(--accent); color: var(--bg);
  border: none; cursor: pointer; text-decoration: none;
  font-weight: 700; display: inline-block;
  transition: opacity 0.2s, transform 0.15s;
}
.btn-primary:hover { opacity: 0.85; transform: translateY(-1px); }

.btn-ghost {
  font-family: var(--ff-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 13px 28px;
  background: transparent; color: var(--text);
  border: 1px solid var(--border2);
  cursor: pointer; text-decoration: none; display: inline-block;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

footer {
  border-top: 1px solid var(--border);
  padding: 32px 5%;
  display: flex; align-items: center; justify-content: space-between;
  position: relative; z-index: 1;
}
.footer-copy { font-family: var(--ff-mono); font-size: 10px; color: var(--muted); letter-spacing: 0.1em; }
.footer-logo { font-family: var(--ff-head); font-size: 18px; font-weight: 700; color: var(--accent); text-decoration: none; letter-spacing: 0.08em; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-avatar-wrap { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-right: 1px solid var(--border); }
  .projects-grid { grid-template-columns: 1fr; }
  .media-layout,
  .skills-layout,
  .contact-layout { grid-template-columns: 1fr; }
  #nav-links { display: none; }
}
