/* ============================================================
   ABIRAL KHATIWADA — PORTFOLIO v3
   Aesthetic: Neo-Brutalist Editorial
   Stark contrasts, hard offset shadows, thick borders, 
   massive typography, high-impact interactions.
   ============================================================ */

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

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

/* ========== DESIGN TOKENS ========== */
:root {
  --bg-main:        #F0F0F0;
  --bg-card:        #FFFFFF;
  --bg-dark:        #111111;
  --bg-dark-alt:    #1A1A1A;
  
  --accent:         #2563EB;
  --accent-hover:   #1D4ED8;
  
  --text-primary:   #111111;
  --text-secondary: #555555;
  --text-light:     #FFFFFF;
  
  --border-main:    #111111;
  --border-light:   #DDDDDD;
  
  /* The signature brutalist shadow */
  --shadow-hard:    4px 4px 0px var(--border-main);
  --shadow-hard-lg: 8px 8px 0px var(--border-main);
  --shadow-hard-hover: 2px 2px 0px var(--border-main);

  --font-main:      'Inter', sans-serif;
  --t-fast:         150ms;
  --t-mid:          250ms;
}

/* ========== BASE ========== */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  background: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover { color: var(--accent); }

img { 
  max-width: 100%; 
  height: auto;
  display: block; 
  object-fit: cover;
}

section { 
  padding: 100px 24px; 
  max-width: 1200px;
  margin: 0 auto;
}

/* ========== SECTION TITLES ========== */
.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  line-height: 1;
}

.section-subtitle {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 60px;
}
.section-subtitle::before { content: none; }

/* ========== BUTTONS (Physical Push Effect) ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 0; /* Sharp corners */
  cursor: pointer;
  border: 2px solid var(--border-main);
  position: relative;
  transition: all var(--t-mid) ease;
  text-transform: uppercase;
}

.btn-primary {
  background: var(--accent);
  color: var(--text-light);
  box-shadow: var(--shadow-hard);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-hard-hover);
  color: var(--text-light);
}

.btn-outline {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: var(--shadow-hard);
}
.btn-outline:hover {
  background: var(--text-primary);
  color: var(--bg-card);
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-hard-hover);
}

/* ========== NAVBAR ========== */
nav#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  height: 72px;
  background: var(--bg-card);
  border-bottom: 2px solid var(--border-main);
  transition: box-shadow var(--t-mid);
}

nav#navbar::after { display: none; } /* Kill gradient line */

.logo img {
  height: 50px;
  width: auto;
  transition: transform var(--t-fast);
}
.logo:hover img { transform: rotate(-5deg) scale(1.1); }

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 0;
  position: relative;
}
.nav-links a::before { display: none; }

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  height: 3px; width: 0;
  background: var(--accent);
  transition: width var(--t-mid) ease;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: 2px solid var(--border-main);
  cursor: pointer;
  padding: 8px;
  border-radius: 0;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-primary);
  transition: all var(--t-mid) ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ========== HERO SECTION (Asymmetric Editorial) ========== */
/* ========== HERO SECTION (Circle Photo Layout) ========== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  position: relative;
  overflow: hidden;
  padding-top: calc(72px + 60px);
  padding-bottom: 80px;
  padding-left: 8%;
  /* reserve space on the right so text never overlaps the photo */
  padding-right: calc(8% + 460px);
  max-width: 100%;
}

.hero::before { display: none; }
.hero::after  { display: none; }
.hero-glow    { display: none; }

/* Text column stays normal-flow */
.hero-content {
  position: relative;
  z-index: 2;
}

/* ---- Circular profile photo ---- */
.hero-photo {
  position: absolute;
  right: 7%;
  top: 50%;
  transform: translateY(-50%);
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 3px solid var(--border-main);
  box-shadow: var(--shadow-hard-lg);
  overflow: hidden;
  z-index: 1;
  /* subtle ring on hover */
  transition: box-shadow var(--t-mid) ease;
}
.hero-photo:hover {
  box-shadow: 10px 10px 0px var(--accent);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.hero-photo::before { display: none; }

/* Placeholder initials when no photo uploaded */
.hero-photo-placeholder {
  width: 100%;
  height: 100%;
  background: var(--bg-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.06em;
}

.hero-greeting {
  font-size: 14px;
  font-weight: 800;
  color: var(--bg-card);
  background: var(--accent);
  display: inline-block;
  padding: 6px 16px;
  margin-bottom: 24px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 2px solid var(--border-main);
  box-shadow: var(--shadow-hard);
}
.hero-greeting::before, .hero-greeting::after { display: none; }

.hero h1 {
  font-size: clamp(3.5rem, 10vw, 9rem);
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 0.9;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.hero h1 .highlight { color: var(--text-primary); }
.hero h1 .highlight::before { display: none; } /* Kill glitch */

.hero h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-left: 4px solid var(--accent);
  padding-left: 16px;
}

.hero-tagline {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 550px;
  margin-bottom: 40px;
  line-height: 1.6;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 8%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.6;
}
.hero-scroll span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-primary);
  text-transform: uppercase;
}
.hero-scroll-line {
  width: 2px; height: 40px;
  background: var(--border-main);
}
@keyframes fade-bob {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(8px); opacity: 1; }
}

/* ========== ABOUT SECTION ========== */
.about {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 48px;
  background: var(--bg-card);
  border: 2px solid var(--border-main);
  box-shadow: var(--shadow-hard-lg);
  padding: 60px;
  position: relative;
  max-width: calc(1200px + 4px); /* Compensate for border */
}

.about::before { display: none; }

/* ---- JSON Code Block ---- */
.about-json-wrapper {
  flex-shrink: 0;
  width: 340px;
  background: #111111;
  border: 2px solid var(--border-main);
  box-shadow: var(--shadow-hard-lg);
  overflow: hidden;
}

.about-json-title-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #1A1A1A;
  border-bottom: 2px solid #333;
}

.about-json-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.about-json-dot:nth-child(1) { background: #FF5F56; }
.about-json-dot:nth-child(2) { background: #FFBD2E; }
.about-json-dot:nth-child(3) { background: #27C93F; }

.about-json-filename {
  font-size: 11px;
  font-weight: 700;
  color: #666;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-left: auto;
}

.about-json-body {
  padding: 24px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  line-height: 2;
  overflow-x: auto;
  white-space: pre;
}

/* JSON syntax colour tokens */
.j-brace   { color: #888888; }
.j-key     { color: #79B8FF; }
.j-str     { color: #9ECE6A; }
.j-num     { color: #E5C07B; }
.j-bool    { color: #F08D49; }
.j-null    { color: #C678DD; }
.j-comma   { color: #888888; }

.about-image-wrapper { display: none; } /* photo moved to hero */

.about-image-wrapper::before {
  content: '';
  position: absolute;
  inset: -12px;
  border: 2px solid var(--border-main);
  z-index: 0;
  background: var(--accent);
}
.about-image-wrapper::after { display: none; }

.about-image-wrapper img, .about-avatar {
  width: 300px;
  aspect-ratio: 1 / 1;
  position: relative;
  z-index: 1;
  object-fit: cover;
  border: 2px solid var(--border-main);
}

.about-avatar {
  background: var(--bg-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  font-weight: 900;
  color: var(--text-primary);
}

.about-text {
  flex: 1;
  min-width: 280px;
  position: relative;
  z-index: 1;
}
.about-text .section-title { 
  text-align: left; 
  margin-bottom: 24px;
  font-size: 2.5rem;
}

.about-text p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-stats {
  display: flex;
  gap: 48px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 2px solid var(--border-main);
}

.stat-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.04em;
}

.stat-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

/* ========== PROJECTS SECTION ========== */
.projects { background: transparent; }

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}

.project-card {
  background: var(--bg-card);
  border: 2px solid var(--border-main);
  border-radius: 0;
  overflow: hidden;
  transition: transform var(--t-mid) ease, box-shadow var(--t-mid) ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-hard);
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 4px;
  background: var(--accent);
  transition: width var(--t-mid) ease;
  z-index: 2;
}
.project-card:hover::before { width: 100%; }

.project-card:hover {
  transform: translate(4px, 4px);
  box-shadow: var(--shadow-hard-hover);
}

.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 2px solid var(--border-main);
}

.project-card-placeholder {
  width: 100%;
  height: 180px;
  background: var(--bg-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 900;
  color: var(--text-primary);
  border-bottom: 2px solid var(--border-main);
}
.project-card-placeholder::after { display: none; }

.project-info { padding: 20px; flex: 1; display: flex; flex-direction: column; }

.project-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}

.project-info h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.project-info p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.6;
  flex: 1;
}

.project-info a {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid var(--text-primary);
  padding-bottom: 2px;
  transition: gap var(--t-fast), color var(--t-fast);
}
.project-info a:hover { gap: 12px; color: var(--accent); border-color: var(--accent); }
.project-info a::after { content: '→'; font-size: 16px; }

.empty-message {
  text-align: center;
  color: var(--text-secondary);
  grid-column: 1 / -1;
  padding: 60px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  border: 2px dashed var(--border-light);
}

/* ========== SKILLS SECTION ========== */
.skills { background: var(--bg-dark); color: var(--text-light); max-width: 100%; padding: 100px 24px; }
.skills .section-title { color: var(--text-light); }
.skills .section-subtitle { color: #888888; }

.skills-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.skill-group {
  text-align: left;
  background: var(--bg-dark-alt);
  border: 2px solid #333333;
  border-radius: 0;
  padding: 24px;
  transition: all var(--t-mid) ease;
  position: relative;
}
.skill-group:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 0 0 2px var(--accent);
}
.skill-group::before { display: none; }

.skill-category {
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.skill-list { display: flex; flex-wrap: wrap; gap: 10px; }

.skill {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 0;
  border: 1px solid #444444;
  background: transparent;
  color: #CCCCCC;
  transition: all var(--t-fast) ease;
}
.skill:hover {
  border-color: var(--text-light);
  color: var(--text-light);
  background: rgba(255,255,255,0.1);
}

/* ========== BLOG PREVIEW ========== */
.blog-preview { background: transparent; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}

.blog-card {
  background: var(--bg-card);
  border: 2px solid var(--border-main);
  border-radius: 0;
  overflow: hidden;
  display: block;
  color: inherit;
  box-shadow: var(--shadow-hard);
  transition: transform var(--t-mid) ease, box-shadow var(--t-mid) ease;
}
.blog-card:hover {
  transform: translate(4px, 4px);
  box-shadow: var(--shadow-hard-hover);
  color: inherit;
}

.blog-card img {
  width: 100%; height: 200px;
  object-fit: cover;
  border-bottom: 2px solid var(--border-main);
}

.blog-card-placeholder {
  width: 100%; height: 200px;
  background: var(--bg-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  border-bottom: 2px solid var(--border-main);
}
.blog-card-placeholder::after { display: none; }

.blog-card-body { padding: 24px; }

.blog-card-body time {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.blog-card-body h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 10px 0;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.blog-card-body p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.blog-cta { text-align: center; margin-top: 48px; }

/* ========== BLOG PAGES ========== */
.blog-page { padding-top: calc(72px + 60px); }

.blog-header { text-align: center; margin-bottom: 60px; }
.blog-header h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.05em;
  text-transform: uppercase;
}
.blog-header p {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.blog-list-card {
  display: flex;
  gap: 0;
  background: var(--bg-card);
  border: 2px solid var(--border-main);
  border-radius: 0;
  overflow: hidden;
  color: inherit;
  box-shadow: var(--shadow-hard);
  transition: all var(--t-mid) ease;
}
.blog-list-card::before { display: none; }

.blog-list-card:hover { 
  transform: translate(4px, 4px); 
  box-shadow: var(--shadow-hard-hover); 
  color: inherit; 
}

.blog-list-image {
  flex-shrink: 0;
  width: 260px;
  border-right: 2px solid var(--border-main);
}
.blog-list-image img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.blog-list-image .blog-card-placeholder { 
  height: 100%; min-height: 180px; width: 260px; border: none; border-right: 2px solid var(--border-main);
}

.blog-list-content {
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.blog-list-content time {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}
.blog-list-content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.blog-list-content p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 16px;
}
.read-more {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.empty-blog {
  text-align: center;
  padding: 100px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  border: 2px dashed var(--border-light);
}
.empty-icon { font-size: 4rem; }
.empty-blog h2 {
  font-size: 2rem;
  color: var(--text-primary);
  font-weight: 900;
  text-transform: uppercase;
}
.empty-blog p { color: var(--text-secondary); font-size: 16px; font-weight: 500; }

/* ========== BLOG DETAIL ========== */
.blog-detail {
  max-width: 760px;
  margin: 0 auto;
  padding: calc(72px + 60px) 24px 100px;
}

.blog-detail-header { margin-bottom: 40px; }

.back-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--text-primary);
  transition: all var(--t-fast);
}
.back-link:hover { color: var(--accent); border-color: var(--accent); gap: 12px; }

.blog-detail-header time {
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 16px;
}

.blog-detail-header h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.updated-date {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 12px;
}

.blog-detail-image {
  margin-bottom: 48px;
  border-radius: 0;
  overflow: hidden;
  border: 2px solid var(--border-main);
  box-shadow: var(--shadow-hard-lg);
}
.blog-detail-image img { width: 100%; }

.blog-detail-content {
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.9;
}
.blog-detail-content p { margin-bottom: 24px; }

.blog-detail-footer {
  display: flex;
  gap: 16px;
  margin-top: 60px;
  padding-top: 32px;
  border-top: 2px solid var(--border-main);
}

/* ========== CONTACT SECTION (Brutalist Terminal) ========== */
.contact {
  background: var(--bg-dark);
  padding: 100px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
  border-top: 2px solid var(--border-main);
  border-bottom: 2px solid var(--border-main);
}

.contact-terminal {
  width: 100%;
  max-width: 900px;
  background: var(--bg-dark-alt);
  border: 2px solid #444;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 12px 12px 0px rgba(0,0,0,0.5);
  position: relative;
}

.terminal-header {
  background: #333;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 2px solid #444;
}

.dots { display: flex; gap: 8px; }

.dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  opacity: 1;
  background: #555;
}
.dot:first-child { background: #FF5F56; }
.dot:nth-child(2) { background: #FFBD2E; }
.dot:last-child { background: #27C93F; }

.terminal-title {
  font-size: 11px;
  font-weight: 700;
  color: #888;
  letter-spacing: 0.15em;
  margin-left: auto;
  text-transform: uppercase;
}

.terminal-body {
  padding: 40px;
  font-family: 'Courier New', Courier, monospace; /* Actual mono for terminal feel */
}

.contact-intro {
  margin-bottom: 36px;
  font-size: 15px;
  color: #AAAAAA;
  line-height: 1.8;
}

.prompt {
  color: var(--accent);
  font-weight: bold;
}

.status-online {
  color: #27C93F;
  text-shadow: none;
  font-weight: bold;
}

.contact-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.contact-node {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid #333;
  border-radius: 0;
  transition: all var(--t-fast) ease;
  text-decoration: none;
}

.contact-node:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 0px #1D4ED8;
}
.contact-node:hover .node-icon { color: var(--text-light); }
.contact-node:hover .node-label { color: rgba(255,255,255,0.7); }
.contact-node:hover .node-val { color: var(--text-light); }

.node-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  flex-shrink: 0;
}

.node-info { display: flex; flex-direction: column; min-width: 0; }

.node-label {
  color: #666;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.1em;
  font-family: var(--font-main);
}

.node-val {
  color: #CCCCCC;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font-main);
}

.contact-footer {
  border-top: 1px solid #333;
  padding-top: 24px;
  color: #666;
  font-size: 14px;
}

.cursor {
  display: inline-block;
  width: 10px;
  height: 20px;
  background: var(--accent);
  animation: blink 1s step-end infinite;
}

/* ========== FOOTER ========== */
footer {
  text-align: center;
  padding: 32px 24px;
  background: var(--bg-main);
  border-top: 2px solid var(--border-main);
  position: relative;
}
footer::before {
  content: '';
  position: absolute;
  top: -2px; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 4px;
  background: var(--accent);
}

.footer-content p {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer-content p a { color: var(--text-primary); }
.footer-content p a:hover { color: var(--accent); }

/* ========== PROJECTS SHOW MORE ========== */
.project-card.hidden-card {
  display: none;
}

.see-more-wrapper {
  text-align: center;
  margin-top: 48px;
}

.see-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 0;
  cursor: pointer;
  border: 2px solid var(--border-main);
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: var(--shadow-hard);
  text-transform: uppercase;
  transition: all var(--t-mid) ease;
}
.see-more-btn:hover {
  background: var(--text-primary);
  color: var(--bg-card);
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-hard-hover);
}
.see-more-btn .arrow-icon {
  display: inline-block;
  transition: transform var(--t-mid) ease;
}
.see-more-btn.expanded .arrow-icon {
  transform: rotate(180deg);
}

/* ========== SCROLL REVEAL ========== */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].revealed { opacity: 1; transform: translateY(0); }
[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }
[data-reveal-delay="4"] { transition-delay: 0.4s; }

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .blog-list-image { width: 180px; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px; left: 0;
    width: 100%;
    flex-direction: column;
    background: var(--bg-card);
    padding: 0;
    gap: 0;
    border-bottom: 2px solid var(--border-main);
  }
  .nav-links.active { display: flex; }
  .nav-links a { 
    font-size: 14px; 
    padding: 16px 24px; 
    width: 100%; 
    border-bottom: 1px solid var(--border-light); 
  }
  .nav-links a:last-child { border-bottom: none; }

  /* On mobile: stack everything, hide the circle photo to save space */
  .hero {
    padding-right: 24px;
    padding-left: 24px;
    align-items: center;
    text-align: center;
  }
  .hero-content { width: 100%; }
  .hero-photo {
    position: relative;
    right: auto; top: auto;
    transform: none;
    width: 240px;
    height: 240px;
    margin: 0 auto 32px;
    /* Make it appear above the text on small screens */
    order: -1;
  }
  .hero-photo-label {
    /* re-anchor to bottom of the repositioned circle */
    position: static;
    display: inline-block;
    margin-top: 10px;
  }
  .hero h2 { border-left: none; padding-left: 0; }
  .hero-greeting { margin-left: auto; margin-right: auto; }
  .hero-tagline  { margin-left: auto; margin-right: auto; }
  .hero-buttons  { justify-content: center; }

  .about {
    flex-direction: column;
    text-align: center;
    gap: 32px;
    padding: 40px 24px;
  }
  .about-json-wrapper { width: 100%; }
  .about-text .section-title { text-align: center; }
  .about-stats { justify-content: center; flex-wrap: wrap; gap: 32px; }

  .blog-list-card { flex-direction: column; }
  .blog-list-image { width: 100%; height: 200px; border-right: none; border-bottom: 2px solid var(--border-main); }
  .blog-list-image .blog-card-placeholder { width: 100%; height: 100%; border-right: none; }
  .blog-list-content { padding: 24px; }
}

@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; width: 100%; }
  .btn { width: 100%; justify-content: center; }
  .project-grid { grid-template-columns: 1fr; }
  .blog-detail-footer { flex-direction: column; }
  .stat { width: 100%; }
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}