/* ============================================================
   beardedpanda.cloud — Portfolio Stylesheet
   ============================================================ */

:root {
  --bg:        #0a0e17;
  --bg2:       #0f1623;
  --bg3:       #161e2e;
  --border:    #1e2d45;
  --accent:    #00d4aa;
  --accent2:   #0099ff;
  --text:      #c8d8f0;
  --text-dim:  #6b7f99;
  --text-head: #e8f0ff;
  --danger:    #ff4560;
  --warn:      #f5a623;
  --font-mono: 'JetBrains Mono', monospace;
  --font-sans: 'Inter', sans-serif;
  --radius:    8px;
  --transition: 0.25s ease;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }

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

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* Selection */
::selection { background: var(--accent); color: var(--bg); }

/* Typography */
h1, h2, h3, h4 { color: var(--text-head); font-weight: 700; line-height: 1.2; }
p { color: var(--text); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
a { color: var(--accent); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.8; }
strong { color: var(--text-head); }

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

/* ======================== NAV ======================== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 64px;
  background: rgba(10, 14, 23, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.nav-brand {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-head);
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-dim);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--accent); opacity: 1; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
}

/* ======================== HERO ======================== */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 100px 4rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-greeting {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.hero-name {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 1rem;
  color: var(--text-head);
}

.hero-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text);
  max-width: 480px;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.75rem;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.btn-primary:hover { opacity: 1; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,212,170,0.3); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.75rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.btn-outline:hover { opacity: 1; background: rgba(0,212,170,0.08); transform: translateY(-2px); }

/* Terminal Widget */
.hero-terminal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.75rem 1rem;
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot.red    { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green  { background: #28c840; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-left: auto;
}

.terminal-body {
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  min-height: 200px;
  line-height: 1.8;
}
.terminal-body .dim { color: var(--text-dim); }
.terminal-body .white { color: var(--text-head); }
.terminal-body .blue { color: var(--accent2); }
.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 1em;
  background: var(--accent);
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ======================== SECTIONS ======================== */
section {
  padding: 6rem 2rem;
}

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

.section-title {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  color: var(--text-head);
}

.section-sub {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 3rem;
}

/* Alternating section backgrounds */
#experience, #contact {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ======================== ABOUT ======================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-top: 2rem;
}

.about-text p {
  color: var(--text);
  margin-bottom: 1.2rem;
}

.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.badge {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
  color: var(--text);
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stat-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: border-color var(--transition);
}
.stat-card:hover { border-color: var(--accent); }

.stat-num {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-head);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ======================== TIMELINE ======================== */
.timeline {
  position: relative;
  padding-left: 2rem;
  margin-top: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--border));
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-dot {
  position: absolute;
  left: -2.42rem;
  top: 0.4rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg2);
  box-shadow: 0 0 0 2px var(--accent);
}

.timeline-content {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color var(--transition);
}
.timeline-content:hover { border-color: var(--accent); }

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.timeline-header h3 {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.company {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-dim);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  white-space: nowrap;
  padding: 0.25rem 0.6rem;
  background: var(--bg2);
  border-radius: 4px;
  border: 1px solid var(--border);
}

.timeline-details {
  padding-left: 1.2rem;
  color: var(--text);
}
.timeline-details li {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

/* ======================== SKILLS ======================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.skill-group {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color var(--transition);
}
.skill-group:hover { border-color: var(--accent); }

.skill-group h3 {
  font-size: 0.9rem;
  font-family: var(--font-mono);
  margin-bottom: 1rem;
  color: var(--text-head);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.25rem 0.6rem;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text);
  transition: all var(--transition);
}
.tag:hover { border-color: var(--accent); color: var(--accent); }
.tag.studying {
  border-color: rgba(0,212,170,0.3);
  color: var(--accent);
  background: rgba(0,212,170,0.05);
}

/* ======================== PROJECTS ======================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.project-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--accent), var(--accent2));
  opacity: 0;
  transition: opacity var(--transition);
}
.project-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.project-card:hover::before { opacity: 1; }

.project-card.coming-soon { opacity: 0.75; }

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.project-icon { font-size: 1.5rem; }

.project-status {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  border: 1px solid var(--border);
}
.project-status.online { color: #00cc88; border-color: #00cc88; }
.project-status.wip    { color: var(--warn); border-color: var(--warn); }
.project-status.planned { color: var(--text-dim); }

.project-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.project-card p {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

/* ======================== CONTACT ======================== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: border-color var(--transition);
  align-items: center;
  text-align: center;
}
.contact-card:hover { border-color: var(--accent); }

.contact-icon { font-size: 1.8rem; }
.contact-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
}
.contact-value {
  font-size: 0.9rem;
  color: var(--text-head);
  font-weight: 500;
}

/* ======================== FOOTER ======================== */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
}
footer p { margin-bottom: 0.3rem; }
.footer-sub { font-size: 0.7rem; }

/* ======================== RESPONSIVE ======================== */
@media (max-width: 900px) {
  #hero {
    grid-template-columns: 1fr;
    padding: 100px 2rem 3rem;
    gap: 2.5rem;
  }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-stats { flex-direction: row; flex-wrap: wrap; }
  .stat-card { flex: 1; min-width: 120px; }
}

@media (max-width: 640px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg2); border-bottom: 1px solid var(--border); padding: 1rem 2rem; gap: 1rem; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  section { padding: 4rem 1.25rem; }
  .hero-name { font-size: 2.8rem; }
  .timeline { padding-left: 1.5rem; }
  .timeline-header { flex-direction: column; }
}
