/* ==========================================================================
   Tushar Yadav Portfolio — Dark Cyber / Glassmorphic Theme
   ========================================================================== */

:root {
  --bg-main: #0a0e17;
  --bg-card: rgba(18, 26, 41, 0.65);
  --bg-card-hover: rgba(26, 38, 59, 0.85);
  --accent-cyan: #00f0ff;
  --accent-green: #00ff66;
  --text-main: #f0f4f8;
  --text-muted: #8a99ad;
  --border-line: rgba(0, 240, 255, 0.15);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "DM Sans", Arial, sans-serif;
  --font-mono: "Courier New", Courier, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-sans);
  overflow-x: hidden;
  position: relative;
}

/* --- Cyber Grid Background --- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.15;
  background-image: 
    linear-gradient(var(--border-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-line) 1px, transparent 1px);
  background-size: 30px 30px;
  z-index: 0;
}

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

.section {
  position: relative;
  z-index: 1;
  padding: 120px clamp(24px, 7vw, 110px);
  max-width: 1500px;
  margin: auto;
}

/* --- Navigation Bar --- */
.nav {
  height: 76px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 6vw, 90px);
  background: rgba(10, 14, 23, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-line);
}

.brand {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-main);
}

.brand span {
  color: var(--accent-cyan);
}

.nav-links {
  display: flex;
  gap: 26px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.nav-links a {
  position: relative;
  color: var(--text-muted);
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--accent-cyan);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 2px;
  background: var(--accent-cyan);
  transition: 0.3s;
  box-shadow: 0 0 8px var(--accent-cyan);
}

.nav-links a:hover::after {
  width: 100%;
}

.menu-btn {
  display: none;
}

/* --- Progress Bar & Glowing Cursor --- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-green));
  box-shadow: 0 0 10px var(--accent-cyan);
  z-index: 50;
}

.cursor-glow {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.12), transparent 70%);
  transform: translate(-50%, -50%);
  z-index: 0;
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 40px;
  padding-top: 130px;
  background: radial-gradient(circle at top right, rgba(0, 240, 255, 0.05), transparent 60%);
  max-width: none;
  padding-left: clamp(24px, 8vw, 130px);
  padding-right: clamp(24px, 8vw, 130px);
}

.hero-copy {
  max-width: 720px;
}

.eyebrow, .mini-kicker, .section-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
}

.hero h1 {
  font-size: clamp(4.3rem, 9vw, 8.5rem);
  line-height: 0.85;
  letter-spacing: -0.05em;
  margin: 22px 0 14px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 0 30px rgba(0, 240, 255, 0.15);
}

.hero h1 em {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--text-muted);
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-green);
  margin: 25px 0;
}

.hero-text {
  max-width: 500px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 34px;
}

.btn {
  padding: 14px 24px;
  border-radius: 6px;
  font-size: 0.84rem;
  font-weight: 700;
  transition: 0.3s;
}

.btn.primary {
  background: var(--accent-cyan);
  color: #000;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.btn.primary:hover {
  transform: translateY(-3px);
  background: var(--accent-green);
  box-shadow: 0 0 30px rgba(0, 255, 102, 0.4);
}

.text-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  border-bottom: 1px solid var(--accent-cyan);
  padding-bottom: 4px;
}

/* --- Hero Visual --- */
.hero-visual {
  position: relative;
  min-height: 610px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.3;
}

.blob-a {
  width: 380px;
  height: 380px;
  background: var(--accent-cyan);
  right: 4%;
  top: 18%;
}

.blob-b {
  width: 200px;
  height: 200px;
  background: var(--accent-green);
  left: 3%;
  bottom: 10%;
}

.profile-sticker {
  position: relative;
  z-index: 2;
  width: min(500px, 90%);
  border-radius: 16px;
  border: 1px solid var(--border-line);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
  filter: saturate(1.1);
  animation: float 6s ease-in-out infinite;
}

.floating-note {
  position: absolute;
  z-index: 3;
  background: rgba(18, 26, 41, 0.85);
  backdrop-filter: blur(12px);
  padding: 14px 18px;
  border: 1px solid var(--border-line);
  border-radius: 8px;
  box-shadow: var(--glass-shadow);
  font-size: 0.68rem;
  line-height: 1.45;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
}

.note-one { top: 19%; left: 0; transform: rotate(-4deg); }
.note-two { right: 0; bottom: 20%; transform: rotate(4deg); }

.scroll-cue {
  position: absolute;
  bottom: 25px;
  left: 8%;
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.scroll-cue span { margin-left: 8px; color: var(--accent-cyan); }

/* --- Marquee Strip --- */
.intro-strip {
  position: relative;
  z-index: 2;
  background: rgba(0, 240, 255, 0.03);
  border-y: 1px solid var(--border-line);
  color: var(--text-main);
  padding: 22px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  overflow: hidden;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  font-weight: 700;
  font-family: var(--font-mono);
}

.intro-strip i { color: var(--accent-green); font-style: normal; }

/* --- Section Formatting & Cards --- */
.section-label { margin-bottom: 70px; }

.about-grid, .journey-top, .play-grid, .contact-grid, .create-head {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
}

.about h2, .create h2, .play h2, .think h2, .cook h2, .future h2, .contact h2 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 15px 0;
  color: #ffffff;
}

.about h2 em, .create h2 em, .play h2 em, .think h2 em, .contact h2 em {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--text-muted);
}

.about-copy {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-muted);
  padding-top: 18px;
}

/* --- Fact Cards --- */
.fact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 75px;
}

.fact-card {
  padding: 24px;
  border: 1px solid var(--border-line);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border-radius: 10px;
  min-height: 145px;
  transition: 0.3s;
}

.fact-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-cyan);
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
}

.fact-card span { font-size: 0.65rem; color: var(--accent-cyan); font-weight: 700; font-family: var(--font-mono); }
.fact-card strong { display: block; margin-top: 20px; font-size: 0.95rem; color: #ffffff; }
.fact-card p { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }

/* --- Journey Timeline --- */
.journey { max-width: none; }
.journey-intro { color: var(--text-muted); line-height: 1.8; max-width: 420px; }

.journey-line {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border-line);
  margin-top: 60px;
}

.step {
  padding: 26px 24px 10px 0;
  border-right: 1px solid var(--border-line);
  min-height: 190px;
}

.step:not(:first-child) { padding-left: 24px; }
.step:last-child { border-right: 0; }
.step b { font-size: 0.65rem; color: var(--accent-cyan); font-family: var(--font-mono); }
.step h3 { font-size: 0.95rem; margin: 28px 0 10px; color: #ffffff; }
.step p { font-size: 0.78rem; color: var(--text-muted); line-height: 1.65; max-width: 230px; }

/* --- Skill Cloud (Badges) --- */
.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 40px 0;
}

.skill-cloud span {
  border: 1px solid var(--border-line);
  background: rgba(0, 240, 255, 0.05);
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 0.78rem;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  transition: 0.3s;
}

.skill-cloud span:hover {
  background: var(--accent-cyan);
  color: #000000;
  box-shadow: 0 0 15px var(--accent-cyan);
  transform: translateY(-3px);
}

/* --- Mindset & Thought Cards --- */
.play-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-line);
  border-radius: 12px;
  padding: 40px;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.big-number {
  font-size: 4rem;
  font-family: var(--font-serif);
  color: var(--accent-cyan);
}

.play-card p {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  line-height: 1.35;
  color: #ffffff;
}

.play-card strong { color: var(--accent-green); }

.thoughts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.thought {
  min-height: 250px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-line);
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: 0.4s;
}

.thought:hover {
  transform: translateY(-7px);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.15);
}

.thought span { color: var(--accent-cyan); font-size: 0.7rem; font-family: var(--font-mono); }
.thought p { font-family: var(--font-serif); font-size: 1.4rem; line-height: 1.4; color: #ffffff; margin: 0; }

/* --- Travel Card --- */
.cook-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-line);
  border-radius: 16px;
  padding: 60px;
  display: grid;
  grid-template-columns: 1fr 260px;
  align-items: center;
  gap: 40px;
}

.cook-card p { color: var(--text-muted); line-height: 1.8; }

.plate {
  height: 220px;
  width: 220px;
  border-radius: 50%;
  background: rgba(0, 240, 255, 0.05);
  border: 2px solid var(--accent-cyan);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  justify-self: end;
  animation: float 5s ease-in-out infinite;
}

.plate span { font-size: 4rem; }
.plate small { text-align: center; color: var(--accent-cyan); font-family: var(--font-mono); font-size: 0.65rem; margin-top: 8px; }

/* --- 5-Year Vision Banner --- */
.future {
  text-align: center;
  padding: 100px 20px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.05) 0%, transparent 70%);
}

.future h2 { font-size: clamp(2rem, 4vw, 3rem); max-width: 900px; margin: 20px auto; }

.future-path {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 40px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
}

.future-path span { font-size: 0.75rem; color: var(--accent-cyan); }
.future-path b { color: var(--accent-green); }

/* --- Contact & Footer --- */
.contact-info { color: var(--text-muted); line-height: 1.8; }
.contact-link {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-line);
  padding: 18px 0;
  margin-top: 20px;
  font-weight: 700;
  color: #ffffff;
}
.contact-link span { color: var(--accent-cyan); }

footer {
  position: relative;
  z-index: 1;
  padding: 28px clamp(24px, 7vw, 100px);
  background: #06090e;
  border-top: 1px solid var(--border-line);
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  font-family: var(--font-mono);
}

/* --- Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.22s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* --- Mobile Responsiveness --- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-btn {
    display: flex;
    background: none;
    border: 0;
    flex-direction: column;
    gap: 5px;
  }
  .menu-btn span { width: 25px; height: 2px; background: var(--text-main); }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: rgba(10, 14, 23, 0.95);
    backdrop-filter: blur(20px);
    padding: 22px;
    flex-direction: column;
    gap: 18px;
    border-bottom: 1px solid var(--border-line);
  }
  .hero { grid-template-columns: 1fr; padding-top: 120px; }
  .about-grid, .journey-top, .play-grid, .contact-grid, .create-head { grid-template-columns: 1fr; gap: 30px; }
  .fact-grid, .thoughts { grid-template-columns: 1fr 1fr; }
  .journey-line { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2) { border-right: 0; }
  .cook-card { grid-template-columns: 1fr; gap: 30px; padding: 35px; }
  .plate { justify-self: start; }
  .scroll-cue { display: none; }
}

@media (max-width: 560px) {
  .section { padding: 85px 22px; }
  .hero h1 { font-size: 3.8rem; }
  .floating-note { display: none; }
  .fact-grid, .thoughts, .journey-line { grid-template-columns: 1fr; }
  .step, .step:not(:first-child) { border-right: 0; border-bottom: 1px solid var(--border-line); padding: 25px 0; }
  footer { flex-direction: column; gap: 10px; }
}