/* ===================================================
   sidpandalgs.com — Main Stylesheet
   Author: Sid Panda  |  Dark panda theme
   =================================================== */

/* ---------- CSS Variables ---------- */
:root {
  --bg:        #0d0f12;
  --bg-alt:    #11141a;
  --surface:   #181b22;
  --surface-2: #1f2330;
  --border:    rgba(255,255,255,0.07);
  --text:      #e8eaf0;
  --text-muted:#8a8fa8;
  --accent:    #4ade80;   /* panda green */
  --accent-2:  #818cf8;   /* indigo       */
  --accent-3:  #f472b6;   /* pink         */
  --grad:      linear-gradient(135deg, #4ade80 0%, #22d3ee 100%);
  --radius:    14px;
  --radius-sm: 8px;
  --shadow:    0 4px 30px rgba(0,0,0,0.5);
  --nav-h:     68px;
  --transition:0.25s ease;
  --font:      'Inter', sans-serif;
  --mono:      'JetBrains Mono', monospace;
}

/* ---------- Reset & Base ---------- */
*, *::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.65;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a  { color: var(--accent); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.8; }

h1,h2,h3,h4 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 6vw, 4rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.4rem); }
h3 { font-size: 1.2rem; }

p { color: var(--text-muted); }

ul { list-style: none; }

/* ---------- Utility ---------- */
.container     { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.text-center   { text-align: center; }
.mt-sm         { margin-top: 0.5rem; }
.mt-md         { margin-top: 1rem; }
.mt-lg         { margin-top: 2rem; }
.ml-sm         { margin-left: 0.5rem; }
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.glassy {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
}
.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.section {
  padding: 6rem 0;
}
.section-alt {
  background: var(--bg-alt);
}
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header h2 { margin-bottom: 0.75rem; }
.section-desc { max-width: 560px; margin: 0 auto; }
.body-text {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 768px) { .split { grid-template-columns: 1fr; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--grad);
  color: #000;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(74,222,128,0.3); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--surface-2); }
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-outline:hover { background: var(--accent); color: #000; }
.btn-full { width: 100%; justify-content: center; }
.btn-sm { padding: 0.45rem 1rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: rgba(13,15,18,0.92);
  box-shadow: 0 1px 0 var(--border);
  backdrop-filter: blur(16px);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
}
.logo-emoji  { font-size: 1.4rem; }
.logo-accent { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-link {
  padding: 0.45rem 0.9rem;
  border-radius: 50px;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: all var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--text);
  background: var(--surface-2);
}
.nav-btn {
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
  background: var(--grad);
  color: #000;
  font-weight: 700;
  font-size: 0.88rem;
  transition: opacity var(--transition), transform var(--transition);
}
.nav-btn:hover { opacity: 0.85; transform: translateY(-1px); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    gap: 0.5rem;
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: 0.6rem 0; }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-h);
  text-align: center;
}
#particle-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: 0 1.5rem;
}
.hero-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--accent);
  margin-bottom: 1.25rem;
  animation: fadeInDown 0.6s ease both;
}
.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 900;
  margin-bottom: 1rem;
  animation: fadeInUp 0.7s ease 0.1s both;
}
.hero-subtitle {
  font-size: clamp(1rem, 3vw, 1.5rem);
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  min-height: 2rem;
  font-family: var(--mono);
  animation: fadeInUp 0.7s ease 0.2s both;
}
.cursor { animation: blink 1s step-end infinite; }
@keyframes blink { 0%,100%{opacity:1;} 50%{opacity:0;} }

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2rem;
  animation: fadeInUp 0.7s ease 0.3s both;
}
.hero-desc strong { color: var(--text); }
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.7s ease 0.4s both;
}
.hero-stats {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  animation: fadeInUp 0.7s ease 0.5s both;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  animation: fadeInUp 1s ease 1s both;
}
.scroll-arrow {
  width: 20px; height: 20px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  animation: scrollBounce 1.5s ease-in-out infinite;
}
@keyframes scrollBounce { 0%,100%{transform: rotate(45deg) translateY(0);} 50%{transform: rotate(45deg) translateY(6px);} }

/* ---------- Project Cards ---------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.project-grid-full {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  opacity: 0;
  transform: translateY(20px);
}
.project-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow var(--transition), border-color var(--transition);
}
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(74,222,128,0.12);
  border-color: rgba(74,222,128,0.35);
}
.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.project-emoji { font-size: 2rem; }
.project-emoji-big { font-size: 2.5rem; }
.project-title { font-size: 1.2rem; margin-bottom: 0.6rem; }
.project-desc  { font-size: 0.92rem; color: var(--text-muted); flex: 1; }
.project-tech  { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }
.project-footer{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.25rem;
}
.project-link { font-size: 0.9rem; font-weight: 600; color: var(--accent); }

.tech-chip {
  padding: 0.2rem 0.65rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.75rem;
  font-family: var(--mono);
  color: var(--text-muted);
}

/* Tag colours */
.project-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.7rem;
  border-radius: 50px;
  letter-spacing: 0.04em;
}
.tag-green  { background: rgba(74,222,128,0.12); color: #4ade80; border: 1px solid rgba(74,222,128,0.25); }
.tag-purple { background: rgba(129,140,248,0.12); color: #818cf8; border: 1px solid rgba(129,140,248,0.25); }
.tag-blue   { background: rgba(56,189,248,0.12);  color: #38bdf8; border: 1px solid rgba(56,189,248,0.25); }
.tag-orange { background: rgba(251,146,60,0.12);  color: #fb923c; border: 1px solid rgba(251,146,60,0.25); }

/* Status badges */
.status-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.7rem;
  border-radius: 50px;
}
.status-live        { background: rgba(74,222,128,0.12); color: #4ade80; }
.status-in-progress { background: rgba(251,146,60,0.12);  color: #fb923c; }

/* ---------- About card ---------- */
.about-card {
  padding: 2rem;
  text-align: center;
}
.about-card-avatar { font-size: 4rem; margin-bottom: 1.5rem; }
.info-table { width: 100%; border-collapse: collapse; text-align: left; }
.info-table tr { border-bottom: 1px solid var(--border); }
.info-table tr:last-child { border-bottom: none; }
.info-table td { padding: 0.6rem 0.5rem; font-size: 0.9rem; }
.info-table td:first-child { width: 2rem; }
.info-table td:nth-child(2) { color: var(--text-muted); width: 7rem; }
.info-table td:nth-child(3) { color: var(--text); }

/* ---------- Panda card (home split) ---------- */
.panda-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}
.panda-avatar { font-size: 5rem; margin-bottom: 1.5rem; }
.panda-info p {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: left;
  align-items: center;
}
.panda-info p:last-child { border-bottom: none; }
.label { font-weight: 600; color: var(--text); min-width: 80px; }
.online-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 6px var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{box-shadow:0 0 4px var(--accent);} 50%{box-shadow:0 0 12px var(--accent);} }

/* ---------- Skills strip (marquee) ---------- */
.skills-strip { overflow: hidden; }
.skills-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: marquee 25s linear infinite;
}
.skills-track:hover { animation-play-state: paused; }
@keyframes marquee { from{transform:translateX(0);} to{transform:translateX(-50%);} }
.skill-pill {
  padding: 0.55rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: default;
  transition: border-color var(--transition);
}
.skill-pill:hover { border-color: var(--accent); }

/* ---------- Skills bars ---------- */
.skills-grid { display: grid; gap: 1.25rem; }
.skill-row { opacity: 0; transform: translateX(-20px); }
.skill-row.visible { opacity: 1; transform: translateX(0); transition: opacity 0.5s ease, transform 0.5s ease; }
.skill-top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.45rem;
}
.skill-icon { font-size: 1.1rem; }
.skill-name { font-weight: 600; font-size: 0.95rem; }
.skill-pct  { margin-left: auto; font-family: var(--mono); font-size: 0.85rem; color: var(--accent); }
.skill-bar-bg {
  height: 8px;
  background: var(--surface-2);
  border-radius: 50px;
  overflow: hidden;
}
.skill-bar-fill {
  height: 100%;
  background: var(--grad);
  border-radius: 50px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}

/* ---------- Timeline ---------- */
.timeline { position: relative; }
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--border);
  transform: translateX(-50%);
}
.timeline-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
}
.timeline-item.visible { opacity: 1; transform: translateY(0); transition: all 0.6s ease; }
.tl-left  { flex-direction: row;         padding-right: calc(50% + 2rem); }
.tl-right { flex-direction: row-reverse; padding-left:  calc(50% + 2rem); }
.tl-icon {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 44px; height: 44px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 1;
}
.tl-content { padding: 1.25rem 1.5rem; }
.tl-year {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(74,222,128,0.1);
  border: 1px solid rgba(74,222,128,0.25);
  padding: 0.1rem 0.6rem;
  border-radius: 50px;
  margin-bottom: 0.5rem;
}
.tl-content h3 { margin-bottom: 0.4rem; }
@media (max-width: 768px) {
  .timeline::before { left: 20px; }
  .timeline-item, .tl-left, .tl-right {
    flex-direction: column;
    padding: 0 0 0 3.5rem;
  }
  .tl-icon { left: 20px; }
}

/* ---------- Interest cards ---------- */
.interest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.25rem;
}
.interest-card { padding: 1.5rem; text-align: center; }
.interest-icon { font-size: 2.2rem; margin-bottom: 0.75rem; }
.interest-card h3 { margin-bottom: 0.5rem; }
.interest-card p  { font-size: 0.9rem; }

/* ---------- Check list ---------- */
.check-list { margin: 1rem 0; }
.check-list li {
  padding: 0.4rem 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.check-list li:last-child { border-bottom: none; }

/* ---------- Page hero ---------- */
.page-hero {
  padding: calc(var(--nav-h) + 3rem) 0 3rem;
  text-align: center;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { margin-bottom: 0.75rem; }
.page-hero-sub { color: var(--text-muted); font-size: 1.05rem; }

/* ---------- Filter tabs ---------- */
.filter-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.filter-btn {
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn.active, .filter-btn:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

/* ---------- Idea cards ---------- */
.idea-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.idea-card { padding: 1.5rem; }
.idea-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.idea-card h3 { margin-bottom: 0.5rem; }
.idea-card p  { font-size: 0.9rem; }

/* ---------- CTA section ---------- */
.cta-section { background: var(--bg-alt); }
.cta-card {
  background: var(--surface);
  border: 1px solid var(--border);
  max-width: 540px;
  margin: 0 auto;
  padding: 3rem 2rem;
  border-radius: var(--radius);
  text-align: center;
}
.cta-emoji { font-size: 3rem; margin-bottom: 1rem; }
.cta-card h2 { margin-bottom: 0.75rem; }
.cta-card p  { margin-bottom: 1.5rem; }

/* ---------- Contact ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 768px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-card { padding: 2rem; }
.contact-card h2 { margin-bottom: 0.75rem; }
.contact-card .body-text { margin-bottom: 1.5rem; }
.contact-items { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.contact-icon { font-size: 1.4rem; margin-top: 2px; }
.contact-item strong { display: block; font-size: 0.9rem; color: var(--text); margin-bottom: 0.2rem; }
.contact-item p { font-size: 0.88rem; }

/* Form */
.contact-form-wrap { padding: 2rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.95rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color var(--transition);
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-error { font-size: 0.78rem; color: #f87171; display: block; margin-top: 0.3rem; }
.form-status {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  text-align: center;
  display: none;
}
.form-status:not(:empty) { display: block; }
.status-ok  { background: rgba(74,222,128,0.1);  color: #4ade80; border: 1px solid rgba(74,222,128,0.25); }
.status-err { background: rgba(248,113,113,0.1); color: #f87171; border: 1px solid rgba(248,113,113,0.25); }

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem 1.5rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}
.footer-left { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--text-muted); }
.footer-right { display: flex; gap: 1.25rem; }
.footer-link { font-size: 0.88rem; color: var(--text-muted); }
.footer-link:hover { color: var(--accent); }
.footer-copy { text-align: center; font-size: 0.8rem; color: var(--text-muted); max-width: 1100px; margin: 0 auto; }

/* ---------- Animations ---------- */
@keyframes fadeInDown {
  from { opacity:0; transform: translateY(-18px); }
  to   { opacity:1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity:0; transform: translateY(18px); }
  to   { opacity:1; transform: translateY(0); }
}

/* ---------- Scroll reveal helper class ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 500px) {
  .hero-stats { gap: 1.5rem; }
  .hero-actions { flex-direction: column; align-items: center; }
}
