/* =============================================
   E P THEEKSHANA — PORTFOLIO
   Dark Premium Theme v7.0
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── TOKENS ───────────────────────────────── */
:root {
  --bg:         #09090b;
  --bg-soft:    #111113;
  --bg-card:    #18181b;
  --border:     #27272a;
  --text:       #fafafa;
  --text-2:     #d4d4d8;
  --muted:      #71717a;
  --accent:     #22c55e;
  --accent-h:   #4ade80;
  --accent-dim: rgba(34,197,94,0.12);
  --font:       'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.4);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.5);
  --shadow-lg:  0 12px 48px rgba(0,0,0,0.65);
  --radius:     10px;
}

/* ── RESET ────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }

/* ── LAYOUT ───────────────────────────────── */
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
section { padding: 6rem 0; }

/* ── LOGO BAR ─────────────────────────────── */
.logo-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  background: rgba(9,9,11,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.logo { font-size: 1.25rem; font-weight: 700; color: var(--text); letter-spacing: -0.03em; }
.logo span { color: var(--accent); }

/* ── HERO ─────────────────────────────────── */
.hero {
  background: var(--bg);
  position: relative;
  overflow: hidden;
  padding: 0;
  min-height: calc(100svh - 57px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Dot grid */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
/* Green glow blob */
.hero::after {
  content: '';
  position: absolute;
  top: -25%;
  right: -10%;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(34,197,94,0.07) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; padding: 3rem 0; width: 100%; }

/* Two-column layout */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 4rem;
  align-items: center;
}

/* Centred single-column layout */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 620px;
}

/* ── RIGHT CARD ─────────────────────────── */
.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(34,197,94,0.06);
}
.hero-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.hero-card-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.hero-card-title {
  margin-left: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted);
  font-family: 'Courier New', monospace;
  letter-spacing: 0.02em;
}
.hero-card-body {
  padding: 1.5rem 1.5rem 1.25rem;
}
.hero-code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.82rem;
  line-height: 1.8;
  white-space: pre;
  overflow-x: auto;
}
.code-brace  { color: #71717a; }
.code-key    { color: #60a5fa; }
.code-colon  { color: #71717a; }
.code-str    { color: var(--accent); }
.code-bool   { color: #f97316; }
.code-comma  { color: #71717a; }
.hero-card-footer {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--border);
}
.hero-card-link {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 0;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  border-right: 1px solid var(--border);
  transition: background 0.2s, color 0.2s;
}
.hero-card-link:last-child { border-right: none; }
.hero-card-link:hover { background: var(--bg-soft); color: var(--text); }

/* Role tag */
.hero-role {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.hero-role::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}

.hero-title {
  font-size: clamp(2.8rem, 6.5vw, 5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 1.5rem;
  max-width: 680px;
}
.hero-title .accent { color: var(--accent); }

.hero-desc {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}
.hero-desc strong { color: var(--text-2); font-weight: 500; }

.hero-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  width: 100%;
  max-width: 420px;
}
.stat-num { font-size: 1.75rem; font-weight: 700; color: var(--text); line-height: 1; letter-spacing: -0.03em; }
.stat-label { font-size: 0.75rem; color: var(--muted); margin-top: 0.3rem; }

/* Photo */
.hero-photo { display: flex; justify-content: center; align-items: center; }
.hero-photo-frame {
  position: relative;
  width: 300px;
  height: 360px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(34,197,94,0.08);
}
.hero-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.hero-photo-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 55%, rgba(9,9,11,0.45) 100%);
  pointer-events: none;
}

/* ── BUTTONS ──────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #000;
  background: var(--accent);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  letter-spacing: -0.01em;
}
.btn-primary:hover {
  background: var(--accent-h);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(34,197,94,0.35);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  background: transparent;
  border: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}
.btn-ghost:hover {
  background: var(--bg-card);
  border-color: #3f3f46;
  color: var(--text);
  transform: translateY(-1px);
}

/* ── MARQUEE / SKILLS STRIP ───────────────── */
.marquee-section {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  overflow: hidden;
}
.marquee-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 25s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.marquee-item i { color: var(--accent); font-size: 0.85rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── SECTION HEADER ───────────────────────── */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.headline {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text);
}
.section-num {
  font-size: 4rem;
  font-weight: 800;
  color: rgba(255,255,255,0.03);
  line-height: 1;
  user-select: none;
  letter-spacing: -0.05em;
}

/* ── PROJECTS ─────────────────────────────── */
.projects-list { display: flex; flex-direction: column; }

.project-item {
  display: grid;
  grid-template-columns: 2.5rem 1fr auto auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1.75rem 0.75rem;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
  border-radius: 8px;
  position: relative;
  margin: 0 -0.75rem;
}
.project-item:hover { background: var(--bg-card); }

.project-num { font-size: 0.75rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.project-info h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.2rem;
  letter-spacing: -0.02em;
  transition: color 0.2s;
}
.project-item:hover .project-info h3 { color: var(--accent); }
.project-info p { font-size: 0.85rem; color: var(--muted); line-height: 1.5; }

.project-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; justify-content: flex-end; }
.tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(34,197,94,0.2);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}

.project-arrow { font-size: 1.1rem; color: var(--muted); transition: all 0.2s; }
.project-item:hover .project-arrow { color: var(--accent); transform: translate(2px, -2px); }

/* Floating preview */
.project-preview {
  position: fixed;
  pointer-events: none;
  z-index: 500;
  width: 280px;
  aspect-ratio: 16/10;
  border-radius: 10px;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.95) translateY(6px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.project-preview.visible { opacity: 1; transform: scale(1) translateY(0); }
.project-preview img { width: 100%; height: 100%; object-fit: cover; }

/* ── ABOUT ────────────────────────────────── */
.about-section {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about-grid { display: grid; grid-template-columns: 260px 1fr; gap: 5rem; align-items: start; }
.about-image-wrap { position: relative; width: 100%; }
.about-img {
  width: 100%;
  border-radius: 16px;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.about-content .label { margin-bottom: 0.5rem; }
.about-content .headline { margin-bottom: 1.5rem; font-size: 1.45rem; }
.about-content p { font-size: 0.95rem; color: var(--muted); line-height: 1.85; margin-bottom: 1rem; }
.about-content p strong { color: var(--text-2); font-weight: 500; }
.skill-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.skill-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--text-2); font-weight: 500; }
.skill-item::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* ── WRITING ──────────────────────────────── */
.writing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; }
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.article-card:hover { transform: translateY(-3px); border-color: #3f3f46; box-shadow: var(--shadow-md); }
.article-thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--bg-soft); }
.article-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.article-card:hover .article-thumb img { transform: scale(1.04); }
.article-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.article-date { font-size: 0.72rem; color: var(--muted); margin-bottom: 0.6rem; letter-spacing: 0.02em; }
.article-body h3 { font-size: 1rem; font-weight: 600; color: var(--text); line-height: 1.45; margin-bottom: 0.5rem; letter-spacing: -0.01em; }
.article-body p { font-size: 0.85rem; color: var(--muted); line-height: 1.7; flex: 1; }
.article-link { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; font-weight: 600; color: var(--accent); margin-top: 1.25rem; transition: gap 0.2s; }
.article-link:hover { gap: 0.65rem; }

/* ── CONTACT ──────────────────────────────── */
.contact-section {
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border);
  text-align: center;
  padding: 5rem 2rem;
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.contact-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(34,197,94,0.07) 0%, transparent 65%);
  pointer-events: none;
}
.contact-section .label { margin-bottom: 1rem; position: relative; }
.contact-section h2 {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
  line-height: 1.15;
  position: relative;
}
.contact-desc {
  font-size: 1rem;
  color: var(--muted);
  max-width: 440px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
  position: relative;
}
.contact-buttons { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; position: relative; }

/* ── FOOTER ───────────────────────────────── */
footer { background: var(--bg-soft); border-top: 1px solid var(--border); padding: 2rem 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer-inner p { font-size: 0.8rem; color: var(--muted); }
.social-row { display: flex; gap: 1.25rem; }
.social-row a { font-size: 0.8rem; font-weight: 500; color: var(--muted); transition: color 0.2s; }
.social-row a:hover { color: var(--text); }

/* ── SCROLL REVEAL ────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); }
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.26s; }

/* ── ARTICLE PAGE ─────────────────────────── */
.article-page { padding-top: 5rem; padding-bottom: 6rem; }
.article-pg-header { max-width: 720px; margin: 0 auto 3rem; }
.article-pg-header .label { margin-bottom: 1rem; display: flex; align-items: center; gap: 1rem; }
.article-pg-header .headline { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 1.25rem; }
.article-pg-header p { font-size: 1.05rem; color: var(--muted); line-height: 1.75; }
.article-hero-img { max-width: 900px; margin: 0 auto 4rem; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-md); }
.article-pg-body { max-width: 700px; margin: 0 auto; }
.article-pg-body h2 { font-size: 1.5rem; font-weight: 700; color: var(--text); margin: 3rem 0 1rem; letter-spacing: -0.02em; }
.article-pg-body h3 { font-size: 1.15rem; font-weight: 600; color: var(--text); margin: 2rem 0 0.75rem; }
.article-pg-body p { font-size: 1rem; color: var(--muted); line-height: 1.85; margin-bottom: 1.25rem; }
.article-pg-body ul { margin-bottom: 1.25rem; padding-left: 1.5rem; color: var(--muted); }
.article-pg-body li { font-size: 1rem; line-height: 1.85; margin-bottom: 0.5rem; }
.article-pg-body li strong { color: var(--text-2); font-weight: 600; }
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 0.5rem 1.1rem;
  border-radius: 6px;
  margin-bottom: 3rem;
  transition: all 0.2s;
}
.back-btn:hover { color: var(--text); border-color: #3f3f46; }

/* ── RESPONSIVE ───────────────────────────── */

/* Tablet */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 200px 1fr; gap: 3rem; }
  .project-tags { display: none; }
  .project-preview { display: none; }
}

/* Mobile */
@media (max-width: 768px) {
  .container { padding: 0 1.25rem; }
  section { padding: 3.5rem 0; }

  .logo-bar { padding: 0.85rem 0; }
  .logo { font-size: 1.1rem; }

  .hero-inner { padding: 2.5rem 0 3rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-content { max-width: 100%; align-items: flex-start; }
  .hero-role { font-size: 0.68rem; }
  .hero-title { font-size: clamp(1.8rem, 8vw, 2.8rem); }
  .hero-desc { font-size: 0.92rem; margin-bottom: 1.75rem; max-width: 100%; }
  .hero-actions { flex-direction: column; gap: 0.65rem; width: 100%; }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost { width: 100%; justify-content: center; min-height: 48px; font-size: 0.9rem; }
  .hero-stats { gap: 0; justify-content: space-between; max-width: 100%; padding-top: 1.75rem; }
  .stat-num { font-size: 1.5rem; }
  .hero-card { margin-top: 0.5rem; }

  .section-header { flex-direction: column; align-items: flex-start; gap: 0.4rem; margin-bottom: 2rem; }
  .section-num { display: none; }

  .project-item { grid-template-columns: 2rem 1fr auto; gap: 0.75rem; padding: 1.25rem 0.5rem; margin: 0 -0.5rem; }
  .project-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.5rem; }
  .project-info { display: flex; flex-direction: column; }

  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-image-wrap { max-width: 140px; margin: 0 auto; }
  .about-img { aspect-ratio: 1/1; border-radius: 50%; }
  .skill-grid { grid-template-columns: 1fr 1fr; gap: 0.6rem; }

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

  .contact-section { padding: 2.75rem 1.25rem; border-radius: 12px; }
  .contact-buttons { flex-direction: column; gap: 0.65rem; }
  .contact-buttons .btn-primary,
  .contact-buttons .btn-ghost { width: 100%; justify-content: center; min-height: 48px; }

  .footer-inner { flex-direction: column; text-align: center; gap: 0.75rem; }
  .social-row { justify-content: center; gap: 1.5rem; }
  .social-row a { min-height: 44px; display: inline-flex; align-items: center; }

  .article-page { padding-top: 3rem; padding-bottom: 3rem; }
  .article-pg-header .headline { font-size: 1.6rem; }
  .article-pg-body h2 { font-size: 1.3rem; margin-top: 2rem; }
  .article-pg-body h3 { font-size: 1.05rem; }
  .back-btn { margin-bottom: 1.75rem; min-height: 44px; }
}

/* Small phones */
@media (max-width: 400px) {
  .container { padding: 0 1rem; }
  .hero-title { font-size: clamp(1.6rem, 8vw, 2.2rem); }
  .stat-num { font-size: 1.35rem; }
  .stat-label { font-size: 0.7rem; }
  .skill-grid { grid-template-columns: 1fr; }
  .logo-bar { padding: 0.75rem 0; }
}

/* Disable hover on touch */
@media (hover: none) {
  .project-item:hover { background: none; }
  .article-card:hover { transform: none; box-shadow: none; }
  .btn-primary:hover, .btn-ghost:hover { transform: none; box-shadow: none; }
}
