/* High-Contrast Dark Theme - Readable White Text */
:root{
  --bg:#0b0e14;
  --bg-grad-1:#0b0e14;
  --bg-grad-2:#0d1117;
  --panel:#141a22;
  --text:#ffffff;
  --muted:#e6e6e6;
  --brand:#7cb3ff;
  --brand-2:#44e2ff;
  --accent:#34d399;
  --border:#313c4d;
  --radius:14px;
  --radius-sm:10px;
  --shadow:0 14px 38px rgba(0,0,0,.55);
  --code:#0f172a;
}

/* Reset and base */
*{box-sizing:border-box}
html,body{
  margin:0;
  padding:0;
  background:linear-gradient(180deg,var(--bg-grad-1) 0%,var(--bg-grad-2) 60%,var(--bg-grad-2) 100%);
  color:var(--text);
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,Helvetica,Arial,sans-serif;
  line-height:1.65;
  font-size:17px;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  min-height:100vh;
}

a{
  color:var(--brand);
  text-decoration:none;
  text-underline-offset:3px;
}
a:hover{ text-decoration:underline }
a:focus-visible, .btn:focus-visible{
  outline:3px solid var(--brand-2);
  outline-offset:2px;
  border-radius:12px;
}

/* Layout wrappers */
.wrap{ max-width:1100px; margin:0 auto; padding:24px; width:100%; }

/* Header/Nav */
header{
  position:sticky; top:0; z-index:20;
  background:rgba(11,14,20,.78);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--border);
}
.nav{ display:flex; align-items:center; justify-content:space-between; gap:16px }
.brand{ display:flex; align-items:center; gap:12px; font-weight:bolder; letter-spacing:.2px }
/* .logo{
  width:36px; height:36px; border-radius:10px; display:grid; place-items:center;
  background:linear-gradient(135deg,#4ea3ff, #44e2ff);
  color:#0b0e14; font-weight:800; box-shadow:var(--shadow)
} */
.links{ display:flex; gap:18px; flex-wrap:wrap }
.links a{ padding:8px 12px; border-radius:10px; color:var(--text) }
.links a:hover{ background:#1a2330 }

/* Buttons */
.btn{
  display:inline-block; padding:10px 14px; border-radius:12px;
  border:1px solid var(--border); background:transparent; color:var(--text);
  text-decoration:none; transition:.2s; cursor:pointer
}
.btn:hover{ background:#1a2330; transform:translateY(-1px) }
.btn-primary{
  border:none;
  background:red;
  color:#0b0e14; font-weight:700;
}
.btn-ghost{
  border-color:var(--border);
  background:rgba(255,255,255,.02)
}

/* Grids and cards */
.grid{ display:grid; gap:18px }
.hero{ display:grid; grid-template-columns:1fr .9fr; gap:26px; align-items:center; padding:36px 0 }

.card{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  opacity:1;
  transform:none;
}
.p{ padding:22px }

/* Typography */
h1{ font-size:42px; line-height:1.15; margin:0 0 10px; color:#fff }
h2{ font-size:28px; margin:0 0 12px; color:#fff }
h3{ font-size:21px; margin:0 0 8px; color:#fff }
.lead{ color:#f5f5f5; font-size:18px }
.muted{ color:var(--muted) }

/* Hero badges and KPIs */
.hero-badges{ display:flex; gap:10px; flex-wrap:wrap; margin-top:14px }
.badge{
  background:rgba(124,179,255,.20);
  border:1px solid rgba(124,179,255,.55);
  color:#ffffff;
  padding:6px 10px; border-radius:999px; font-size:13px
}
.kpi{ display:flex; gap:18px; flex-wrap:wrap; margin-top:14px }
.kpi .item{
  padding:10px 12px; border-radius:10px;
  background:rgba(52,211,153,.18);
  border:1px solid rgba(52,211,153,.45);
  font-size:14px; color:#ffffff
}
.hero-actions{
  margin-top:16px;
  display:flex;
  gap:10px;
  flex-wrap:wrap
}

/* Portrait decorative panel */
/* .portrait{
  aspect-ratio:1/1; border-radius:16px;
  background:
    radial-gradient(120px 120px at 70% 30%, rgba(68,226,255,.32), transparent 60%),
    radial-gradient(120px 120px at 30% 70%, rgba(124,179,255,.32), transparent 60%),
    linear-gradient(180deg, #111929 0%, #0f1420 100%);
  display:grid; place-items:center; border:1px solid var(--border)
}
.portrait .inner{
  width:70%; height:70%; border-radius:50%;
  background:conic-gradient(from 0deg, rgba(124,179,255,.55), rgba(68,226,255,.65), rgba(52,211,153,.55), rgba(124,179,255,.55));
  filter:blur(10px); opacity:.55
} */


/* More generous spacing */
main section {
  margin-bottom: 48px;
}

main section:last-child {
  margin-bottom: 0;
}


/* Sections */
section{ scroll-margin-top:80px }

/* Skills */
.skills{ display:flex; flex-wrap:wrap; gap:10px }
.chip{
  padding:8px 12px; background:rgba(255,255,255,.08);
  border:1px solid var(--border); border-radius:999px; font-size:14px; color:#fff
}

/* Projects */
.projects{ grid-template-columns:repeat(3,1fr) }
.project{ display:flex; flex-direction:column; gap:10px }
.project .stack{ display:flex; gap:8px; flex-wrap:wrap }
.project .meta{ display:flex; gap:8px; flex-wrap:wrap }
.project .meta .pill{
  font-size:12px; padding:5px 8px; border-radius:999px;
  background:rgba(255,255,255,.05); border:1px solid var(--border); color:#f0f0f0
}
.project .actions{ margin-top:auto; display:flex; gap:10px }

/* Education & lists */
.edu{ display:grid; grid-template-columns:1fr; gap:12px }
.list{ padding-left:18px; margin:10px 0; color:#fff }
.list li{ margin:6px 0 }

/* Contact */
.contact-list{ list-style:none; padding:0; margin:0; display:grid; gap:8px }
.contact-list a{ color:#ffffff }
.contact-list a:hover{ color:#e0f0ff }

/* Footer */
footer{
  margin-top:30px; padding:24px 0; color:#e8e8e8;
  border-top:1px solid var(--border)
}

/* Code blocks */
code,pre{
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
  background:var(--code);
  border:1px solid var(--border);
  border-radius:10px; padding:2px 6px; color:#e8eefc
}

/* Interactive states */
.btn, .links a, .chip, .badge, .pill{
  transition:background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

/* Accessibility */
.card, .p, .project, .edu, .list, .skills, .contact-list{
  color:#ffffff;
}

/* Responsive */
@media (max-width: 980px){
  .hero{ grid-template-columns:1fr }
  .projects{ grid-template-columns:1fr 1fr }
}
@media (max-width: 640px){
  html,body{ font-size:16px }
  h1{ font-size:36px }
  .projects{ grid-template-columns:1fr }
  .links{ display:none }
}

/* Optional enhancements */
header{ box-shadow:0 8px 24px rgba(0,0,0,.35) }
.card{ box-shadow:0 10px 30px rgba(0,0,0,.45) }
::selection{ background:#1856ff; color:#fff }



/* Terminal Styles - Fixed Size */
.terminal-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.terminal {
  background: #1a1a1a;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
  max-width: 480px;
  height: 320px; /* Fixed height to match card size */
  box-shadow: var(--shadow);
  font-family: 'Courier New', 'Monaco', monospace;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.terminal-header {
  background: #2d2d2d;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0; /* Don't shrink header */
}

.control {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: block;
}

.control.close { background: #ff5f56; }
.control.minimize { background: #ffbd2e; }
.control.maximize { background: #27ca3f; }

.terminal-controls {
  display: flex;
  gap: 6px;
}

.terminal-title {
  color: #888;
  font-size: 12px;
  font-weight: bold;
}

.terminal-body {
  padding: 16px;
  background: #0d1117;
  color: #e6edf3;
  font-size: 14px;
  line-height: 1.4;
  flex: 1; /* Take remaining space */
  overflow-y: auto; /* Add scroll if content overflows */
  overflow-x: hidden;
}

/* Scrollbar styling for terminal */
.terminal-body::-webkit-scrollbar {
  width: 6px;
}

.terminal-body::-webkit-scrollbar-track {
  background: #1a1a1a;
}

.terminal-body::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 3px;
}

.terminal-body::-webkit-scrollbar-thumb:hover {
  background: #666;
}

.terminal-line {
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.prompt {
  color: #7cb3ff;
  margin-right: 8px;
  font-weight: bold;
  flex-shrink: 0;
}

.command {
  color: #34d399;
}

.terminal-output {
  margin: 8px 0 16px 0;
  color: #e6edf3;
}

.typed-line {
  margin-bottom: 2px;
  min-height: 16px;
  word-wrap: break-word;
}

.skill-category {
  color: #f59e0b;
  font-weight: bold;
}

.skill-item {
  color: #7cb3ff;
  padding-left: 16px;
}

.cursor {
  color: #7cb3ff;
  animation: blink 1s infinite;
  font-weight: bold;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Ensure hero grid stays balanced */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: flex-start; /* Changed from center to flex-start */
  padding: 36px 0;
}

/* Responsive terminal */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    align-items: center;
  }
  
  .terminal-container {
    margin-top: 24px;
  }
}

@media (max-width: 640px) {
  .terminal {
    max-width: 100%;
    height: 280px; /* Slightly smaller on mobile */
    font-size: 12px;
  }
  
  .terminal-body {
    padding: 12px;
  }
}

