/* =============================================
   Portfolio — Dark Technical Aesthetic
   ============================================= */

:root {
  --bg:          #0a0c10;
  --bg-surface:  #111520;
  --bg-elevated: #161b28;
  --border:      #1e2740;
  --accent:      #00d9ff;
  --accent-dim:  #00d9ff33;
  --accent-2:    #7c3aed;
  --text:        #e2e8f0;
  --text-muted:  #64748b;
  --text-dim:    #94a3b8;
  --green:       #22c55e;
  --font-display: 'Syne', sans-serif;
  --font-mono:    'Space Mono', monospace;
  --max-w: 1100px;
  --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

a { color: var(--accent); text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .75; }

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

/* ---- App wrapper ---- */
.app { min-height: 100vh; }

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2.5rem;
  background: rgba(10, 12, 16, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
}
.logo-bracket { color: var(--accent); }

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: color .2s;
}
.nav-links a:hover { color: var(--accent); opacity: 1; }

.nav-cta {
  border: 1px solid var(--accent) !important;
  padding: .3rem .85rem;
  border-radius: 4px;
  color: var(--accent) !important;
}
.nav-cta:hover { background: var(--accent-dim) !important; opacity: 1 !important; }

/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  padding: 8rem 4rem 4rem;
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
}

.hero-bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: .35;
}

.hero-greeting {
  font-family: var(--font-mono);
  font-size: .85rem;
  color: var(--green);
  margin-bottom: .5rem;
  animation: fadeSlideUp .6s ease both;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  background: linear-gradient(135deg, #fff 30%, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeSlideUp .6s .1s ease both;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 400;
  color: var(--text-dim);
  margin-top: .5rem;
  animation: fadeSlideUp .6s .2s ease both;
}

.cursor {
  display: inline-block;
  color: var(--accent);
  animation: blink 1s step-end infinite;
}

.hero-bio {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: .9rem;
  max-width: 480px;
  margin-top: 1.5rem;
  line-height: 1.8;
  animation: fadeSlideUp .6s .3s ease both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  animation: fadeSlideUp .6s .4s ease both;
}

.btn {
  display: inline-block;
  padding: .65rem 1.5rem;
  font-family: var(--font-mono);
  font-size: .82rem;
  letter-spacing: .06em;
  border-radius: var(--radius);
  transition: all .2s;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
}
.btn-primary:hover { opacity: .85; transform: translateY(-2px); }

.btn-outline {
  border: 1px solid var(--border);
  color: var(--text-dim);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); opacity: 1; transform: translateY(-2px); }

/* Code panel */
.hero-code-panel {
  animation: fadeSlideUp .8s .2s ease both;
}

.code-block {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  font-family: var(--font-mono);
  font-size: .82rem;
  line-height: 1.8;
  color: var(--text-dim);
  position: relative;
  overflow: auto;
  box-shadow: 0 0 40px rgba(0, 217, 255, 0.06);
}

.code-block::before {
  content: "● ● ●";
  display: block;
  color: var(--text-muted);
  font-size: .65rem;
  letter-spacing: .3em;
  margin-bottom: 1rem;
  opacity: .6;
}

/* =============================================
   SECTION COMMON
   ============================================= */
.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 6rem 4rem;
}

.section-header {
  margin-bottom: 3rem;
}
.section-tag {
  display: block;
  font-size: .8rem;
  color: var(--accent);
  margin-bottom: .5rem;
  letter-spacing: .1em;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--text);
}

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

.project-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 217, 255, 0.08);
}

.project-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.project-icon { font-size: 1.5rem; color: var(--accent); }
.project-links { display: flex; gap: .75rem; font-size: .78rem; }

.project-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}
.project-desc { font-size: .84rem; color: var(--text-muted); flex: 1; }
.project-tags { display: flex; gap: .5rem; flex-wrap: wrap; }

/* =============================================
   SKILLS
   ============================================= */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem;
}
.skill-category {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.skill-cat-title {
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.skill-list { display: flex; flex-wrap: wrap; gap: .5rem; }

/* =============================================
   TAGS / PILLS (shared)
   ============================================= */
.tag, .skill-pill {
  display: inline-block;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(0, 217, 255, .2);
  padding: .2rem .65rem;
  border-radius: 4px;
  font-size: .75rem;
  letter-spacing: .04em;
}
.skill-pill {
  background: var(--bg-elevated);
  color: var(--text-dim);
  border-color: var(--border);
}

/* =============================================
   EXPERIENCE
   ============================================= */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  border-left: 2px solid var(--border);
  padding-left: 2.5rem;
  margin-left: 1rem;
}
.timeline-item { position: relative; }
.timeline-marker {
  position: absolute;
  left: -3rem;
  top: .3rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-dim);
}
.timeline-meta { margin-bottom: 1rem; }
.timeline-role {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}
.timeline-company {
  color: var(--accent);
  font-size: .85rem;
  margin-right: .75rem;
}
.timeline-period { color: var(--text-muted); font-size: .8rem; }
.timeline-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.timeline-bullets li {
  color: var(--text-muted);
  font-size: .86rem;
  padding-left: 1.25rem;
  position: relative;
}
.timeline-bullets li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* =============================================
   CONTACT
   ============================================= */
.contact-content { max-width: 600px; }
.contact-intro {
  color: var(--text-muted);
  font-size: .9rem;
  margin-bottom: 2.5rem;
  line-height: 1.9;
}
.contact-links { display: flex; flex-direction: column; gap: 1rem; }
.contact-link {
  display: flex;
  align-items: center;
  gap: .85rem;
  color: var(--text-dim);
  font-size: .9rem;
  transition: color .2s;
}
.contact-link:hover { color: var(--accent); opacity: 1; }
.contact-link-icon { font-size: 1.1rem; color: var(--accent); }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-muted);
  font-size: .8rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.footer-highlight { color: var(--accent); }
.footer-copy { opacity: .5; }

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 6rem 1.5rem 3rem;
  }
  .hero-code-panel { display: none; }
  .navbar { padding: 1rem 1.5rem; }
  .nav-links { gap: 1.2rem; }
  .section { padding: 4rem 1.5rem; }
  .timeline { padding-left: 1.5rem; }
}
