/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  --bg: #050505;
  --bg-alt: #0a0a0a;
  --bg-card: #0e0e0e;
  --text: #f1f1f1;
  --text-dim: #a8a8b2;
  --accent: #ff4500; /* Keeping your preferred accent */
  --font-display: 'Syne', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.mono-text {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.accent-color {
  color: var(--accent);
}

.accent-text {
  color: var(--accent);
}

.section-pad {
  padding: 8rem 3rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

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

/* ============================================
   CUSTOM CURSOR (desktop only)
   ============================================ */
.cursor, .cursor-follower { display: none; }

@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }
  a, button { cursor: none; }

  .cursor {
    display: block;
    position: fixed;
    top: 0; left: 0;
    width: 10px; height: 10px;
    background: var(--text);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    will-change: transform;
  }

  .cursor-follower {
    display: block;
    position: fixed;
    top: 0; left: 0;
    width: 40px; height: 40px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9998;
    transition: width 0.3s, height 0.3s, background 0.3s;
    will-change: transform;
  }

  .cursor-follower.active {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }
}

/* ============================================
   LOADER
   ============================================ */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader-text {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 4vw, 2rem);
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.1em;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  padding: 1.25rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  mix-blend-mode: difference;
}

.nav-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1rem, 2vw, 1.4rem);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  z-index: 101;
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s ease;
}

.nav-toggle.active span:first-child {
  transform: rotate(45deg) translate(3px, 3px);
}
.nav-toggle.active span:last-child {
  transform: rotate(-45deg) translate(3px, -3px);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.nav-links a {
  position: relative;
  padding: 0.25rem 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--text);
  transition: width 0.3s var(--ease-out);
}
.nav-links a:hover::after {
  width: 100%;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  padding: 10rem 3rem 4rem; /* Changed padding to push content down */
  display: flex;
  flex-direction: column;
}
.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-top-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.hero-mini-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.2);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7.5rem);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}
.line-wrap { overflow: hidden; }

.hero-sub {
  margin-top: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 3rem;
}
.hero-sub-text p {
  max-width: 450px;
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.6;
  opacity: 0.8;
  margin-bottom: 1rem;
}

/* Terminal Box */
.hero-terminal {
  background: #08080a;
  border: 1px solid #1c1c21;
  border-radius: 12px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  overflow: hidden;
}
.term-header {
  background: #0c0c0f;
  border-bottom: 1px solid #1c1c21;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: #2a2a30; }
.accent-dot { background: var(--accent); }
.term-title { font-family: var(--font-mono); font-size: 0.7rem; color: #8a8a96; margin-left: 10px; }
.term-body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.8;
  color: #9a9aa4;
}
.keyword { color: var(--accent); }
.string { color: #8e8e98; }
.comment { color: #555560; }
.prompt { color: var(--accent); }
.blink { animation: blink 1s step-end infinite; color: var(--accent); }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* Hero Stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: #17171b;
  border: 1px solid #17171b;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 4rem;
}
.stat-box {
  background: #08080a;
  padding: 1.5rem;
}
.stat-label { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.15em; color: var(--text-dim); margin-bottom: 0.5rem; }
.stat-val { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: #fff; line-height: 1.2; }
.stat-sub { font-size: 0.8rem; color: #8e8e98; margin-top: 0.25rem; }

/* ============================================
   PATHWAYS (3 WAYS IN)
   ============================================ */
.pathway-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
}
.pathway-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.pathway-card {
  background: var(--bg-card);
  border: 1px solid #17171b;
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.3s ease;
}
.pathway-card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-top h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; }
.time-badge {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  background: rgba(255, 69, 0, 0.1);
  color: var(--accent);
  padding: 4px 8px;
  border-radius: 4px;
}
.pathway-card p { font-size: 0.9rem; color: var(--text-dim); line-height: 1.6; flex: 1; }
.card-link { font-size: 0.9rem; font-weight: 600; color: var(--accent); }

/* ============================================
   THE ONE IDEA
   ============================================ */
.one-idea {
  background: var(--bg-alt);
  border-top: 1px solid #101013;
  border-bottom: 1px solid #101013;
}
.idea-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.large-text {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.2;
  font-weight: 700;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-wrap: pretty;
}
.body-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-dim);
}
.idea-visual {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.pipeline-step {
  display: flex;
  gap: 1.5rem;
  background: var(--bg-card);
  border: 1px solid #1c1c22;
  padding: 1.5rem;
  border-radius: 12px;
  align-items: center;
}
.step-num { font-family: var(--font-mono); color: var(--accent); font-size: 0.85rem; }
.step-content h4 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 0.25rem; }
.step-content p { font-size: 0.85rem; color: var(--text-dim); }

/* ============================================
   ABOUT
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}
.about-text, .about-image-wrapper {
  min-width: 0;
}
.about-img {
  width: 100%;
  height: 60vh;
  max-height: 600px;
  object-fit: cover;
  border-radius: 12px;
  filter: grayscale(100%) contrast(1.1);
  transition: filter 0.5s ease;
}
.about-img:hover { filter: grayscale(0%) contrast(1); }
.about-desc p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

/* Ticker */
.skills-ticker {
  margin-top: 3rem;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  padding: 1rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.ticker-content {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 700;
  animation: marquee 20s linear infinite;
  will-change: transform;
}
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ============================================
   PROJECTS
   ============================================ */
.work { background: var(--bg-alt); }
.work-header { margin-bottom: 4rem; max-width: 600px; }
.project-list { border-top: 1px solid rgba(255,255,255,0.1); }
.project-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  position: relative;
  cursor: pointer;
}
.project-meta { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.tag { font-family: var(--font-mono); font-size: 0.65rem; background: rgba(255,255,255,0.05); padding: 4px 8px; border-radius: 4px; color: var(--text-dim); }
.project-info h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 700;
  transition: color 0.3s, padding-left 0.3s var(--ease-out);
}
.project-desc { margin-top: 1rem; color: var(--text-dim); max-width: 500px; line-height: 1.6; font-size: 0.95rem; }

.project-img-preview {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%) scale(0.8);
  width: min(400px, 35vw);
  aspect-ratio: 16 / 10;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s var(--ease-out);
  overflow: hidden;
  border-radius: 12px;
}
.project-img-preview img { width: 100%; height: 100%; object-fit: cover; }
.project-row:hover .project-img-preview { opacity: 1; transform: translateY(-50%) scale(1); }
.project-row:hover .project-info h3 { color: var(--accent); padding-left: 1.5rem; }
.project-cta {
  display: inline-block;
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: opacity 0.3s;
}
.project-cta:hover { opacity: 0.7; }
.contact-header { max-width: 600px; margin: 0 auto 3rem; }
.contact-sub { font-size: 1.1rem; color: var(--text-dim); line-height: 1.6; }
.hero-resume-btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.8rem 1.5rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  transition: transform 0.3s, background 0.3s;
}
.hero-resume-btn:hover { background: #e04b2b; transform: translateY(-2px); }

/* ============================================
   EXPERIENCE
   ============================================ */
.experience { border-top: 1px solid #101013; }
.exp-timeline { margin-top: 3rem; display: flex; flex-direction: column; gap: 2rem; }
.exp-card {
  background: var(--bg-card);
  border: 1px solid #1c1c22;
  border-radius: 16px;
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  transition: border-color 0.3s;
}
.exp-card:hover { border-color: rgba(255,255,255,0.3); }
.exp-header h3 { font-family: var(--font-display); font-size: 1.4rem; margin: 1rem 0 0.5rem; }
.company { font-size: 0.9rem; color: var(--text-dim); }
.exp-body ul { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.exp-body li { font-size: 0.95rem; color: var(--text-dim); line-height: 1.6; position: relative; padding-left: 1.5rem; }
.exp-body li::before { content: '→'; position: absolute; left: 0; color: var(--accent); }
.exp-body strong { color: var(--text); font-weight: 600; }

/* ============================================
   CONTACT
   ============================================ */
.contact { text-align: center; background: var(--bg-alt); border-top: 1px solid #101013;}
.huge-text {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 11rem);
  font-weight: 800;
  line-height: 0.9;
  -webkit-text-stroke: 1px rgba(255,255,255,0.3);
  color: transparent;
  transition: color 0.3s, -webkit-text-stroke 0.3s;
}
.huge-text:hover { color: var(--text); -webkit-text-stroke: 0; }
.contact-footer {
  margin-top: 4rem;
  display: flex;
  justify-content: center;
  gap: 3rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  flex-wrap: wrap;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
  .section-pad { padding: 6rem 2rem; }
  .nav { padding: 1.25rem 2rem; }
  .hero { padding: 7rem 2rem 2rem; }
  
  .idea-grid, .about-grid { gap: 3rem; }
  .exp-card { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 768px) {
  .nav { padding: 1rem 1.5rem; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: 0; right: 0; width: 100%; height: 100vh;
    background: var(--bg); flex-direction: column; align-items: center; justify-content: center;
    gap: 2rem; font-size: 1.2rem; transform: translateX(100%); transition: transform 0.4s var(--ease-out);
  }
  .nav-links.open { transform: translateX(0); }
  
  .hero { padding: 6rem 1.5rem 2rem; }
  .hero-sub { flex-direction: column; align-items: flex-start; gap: 2rem; }
  .hero-terminal { max-width: 100%; }
  
  .idea-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-img { height: 40vh; max-height: 400px; }
  
  .project-row { flex-direction: column; align-items: flex-start; padding: 2rem 0; }
  .project-img-preview { display: none; }
  
  .exp-card { padding: 1.5rem; }
  .contact-footer { flex-direction: column; gap: 1rem; align-items: center; }
}

@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .section-pad { padding: 4rem 1.25rem; }
  .pathway-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
