/* ===============================================
   CSS CUSTOM PROPERTIES
   =============================================== */
:root {
  --bg-primary: #0c0e12;
  --bg-secondary: #141720;
  --bg-card: rgba(20, 23, 32, 0.85);
  --bg-card-hover: rgba(30, 36, 52, 0.95);
  --bg-surface: rgba(255, 255, 255, 0.04);
  --bg-surface-hover: rgba(255, 255, 255, 0.08);

  --border: rgba(255, 255, 255, 0.07);
  --border-accent: rgba(77, 217, 240, 0.25);

  --text-primary: #f0f0ec;
  --text-secondary: rgba(240, 240, 236, 0.55);
  --text-muted: rgba(240, 240, 236, 0.3);

  --accent: #4dd9f0;
  --accent-navy: #1a3c6e;
  --accent-teal: #0e76a8;
  --accent-mid: #2ba8cc;
  --accent-glow: rgba(77, 217, 240, 0.1);
  --gradient: linear-gradient(135deg, #0e76a8, #4dd9f0);
  --gradient-text: linear-gradient(135deg, #4dd9f0, #a8e6f0);

  --nav-bg: rgba(12, 14, 18, 0.82);

  --shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.7);
  --shadow-accent: 0 8px 32px rgba(77, 217, 240, 0.12);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  --transition: all 0.3s ease;
}

/* ===============================================
   FONTS
   =============================================== */
@font-face {
  font-family: "Stringer";
  src: url("https://cdn.prod.website-files.com/66245c2c8b72c9616045fa9b/6672f952b36b0a9463c9d316_Stringer-Light-Web.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "Stringer";
  src: url("https://cdn.prod.website-files.com/66245c2c8b72c9616045fa9b/6672f9522072572b2dccc510_Stringer-Thin-Web.woff2") format("woff2");
  font-weight: 100;
  font-style: normal;
}

@font-face {
  font-family: "Geist";
  src: url("https://cdn.prod.website-files.com/66245c2c8b72c9616045fa9b/662462bdf272d3d1afb6e628_Geist-SemiBold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: "Geist Mono";
  src: url("https://cdn.prod.website-files.com/66245c2c8b72c9616045fa9b/662462fa67bca134a1a18128_GeistMono-SemiBold.woff");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'Geist Mono';
  src: url('https://cdn.prod.website-files.com/66245c2c8b72c9616045fa9b/662462faf971285a23464ef4_GeistMono-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Geist Mono';
  src: url('https://cdn.prod.website-files.com/66245c2c8b72c9616045fa9b/662462fa21820a6357c20552_GeistMono-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
}

/* ===============================================
   BACKGROUND CANVAS
   =============================================== */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.55;
}

/* ===============================================
   RESET & BASE
   =============================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Stringer', sans-serif;
  font-size: 15.13px;
  font-weight: 500;
  line-height: 25.72px;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  background-image: url('../assets/images/website-bg.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.app-wrapper {
  position: relative;
  background: transparent;
  overflow: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* ===============================================
   UTILITIES
   =============================================== */
.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 32px;
}

/* Scroll reveal */
.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal-fade {
  opacity: 0;
  transition: opacity 0.65s ease;
}

.reveal-up.visible,
.reveal-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Legacy animation classes */
.fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
}

.slide-up {
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 0.8s ease-out forwards;
}

.slide-down {
  opacity: 0;
  transform: translateY(-100px);
  animation: slideDown 0.6s ease-out forwards;
}

@keyframes fadeIn { to { opacity: 1; } }
@keyframes slideUp { to { opacity: 1; transform: translateY(0); } }
@keyframes slideDown { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.05); }
}

.float-animation  { animation: float 3s ease-in-out infinite; }
.pulse-animation  { animation: pulse 2s ease-in-out infinite; }

/* ===============================================
   NAVIGATION
   =============================================== */
.navbar {
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
  isolation: isolate;
}

.navbar.scrolled {
  background: rgba(10, 12, 16, 0.96);
  border-bottom-color: rgba(77, 217, 240, 0.15);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 32px;
  max-width: 1200px;
}

.logo a {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
  display: block;
}

.logo a:hover { color: var(--accent); }

/* Profile in navbar */
.logo .hero-profile {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.logo .hero-profile-image {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  flex-shrink: 0;
  transition: var(--transition);
}

.logo .hero-profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.logo .hero-profile-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo .hero-profile-info span:first-child {
  font-family: 'Geist', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

.logo .hero-profile-info span:last-child {
  color: var(--accent);
  font-size: 10px;
  font-family: 'Geist Mono', monospace;
  font-weight: 500;
  letter-spacing: 1.5px;
  line-height: 1.2;
  text-transform: uppercase;
}

.logo a:hover .hero-profile-image {
  border-color: var(--border-accent);
  transform: scale(1.05);
}

.nav-menu {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  color: rgba(240, 240, 236, 0.82);
  text-decoration: none;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
  letter-spacing: 0.5px;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
  color: var(--accent);
  background: var(--accent-glow);
  font-weight: 600;
}

.nav-link-resume {
  color: var(--accent) !important;
  border: 1px solid rgba(77, 217, 240, 0.35);
  margin-left: 0.25rem;
}

.nav-link-resume:hover {
  background: var(--accent-glow) !important;
  border-color: var(--accent);
  color: #fff !important;
}

.navbar .container ul li a:not(.nav-link) {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  color: rgba(240, 240, 236, 0.82);
  text-decoration: none;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  letter-spacing: 0.5px;
  display: inline-block;
}

.navbar .container ul li a:not(.nav-link):hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition);
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -5px); }

/* ===============================================
   MAIN CONTENT
   =============================================== */
#main-content {
  min-height: 80vh;
  padding-top: 65px;
  position: relative;
  z-index: 1;
}

.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 2px solid rgba(77, 217, 240, 0.12);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

/* ===============================================
   SECTION COMMON
   =============================================== */
.section-title {
  font-family: 'Stringer', sans-serif;
  font-size: 48px;
  font-weight: 100;
  letter-spacing: -1.5px;
  text-align: center;
  margin-bottom: 12px;
  color: var(--text-primary);
  position: relative;
  display: block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: var(--gradient);
  transition: width 0.7s ease 0.2s;
}

.section-title.visible::after {
  width: 72px;
}

.section-subtitle {
  font-family: 'Stringer', sans-serif;
  font-size: 16px;
  font-weight: 300;
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 60px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.75;
}

/* ===============================================
   HOME SECTION
   =============================================== */
.home-section {
  background: linear-gradient(175deg, rgba(12, 14, 18, 0.78) 0%, rgba(20, 23, 32, 0.82) 100%);
  min-height: calc(100vh - 65px);
  padding: 100px 0 90px;
  position: relative;
  overflow: hidden;
}

/* Grid lines (now a secondary layer — canvas provides primary bg texture) */
.home-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(77, 217, 240, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 217, 240, 0.018) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

/* Ambient glow */
.home-section::after {
  content: '';
  position: absolute;
  top: -160px;
  right: -160px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(14, 118, 168, 0.1) 0%, transparent 68%);
  pointer-events: none;
}

.home-hero {
  text-align: center;
  max-width: 880px;
  margin: 0 auto 72px;
}

.home-intro h1 {
  font-family: 'Stringer', sans-serif;
  font-size: 72px;
  font-weight: 100;
  line-height: 1.05;
  letter-spacing: -2.5px;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.home-intro h1 span {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--accent);
  margin-bottom: 24px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.description {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto;
}

/* Expertise Box */
.expertise-box {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  margin-bottom: 40px;
  text-align: center;
  transition: var(--transition);
}

.expertise-box:hover {
  border-color: rgba(77, 217, 240, 0.12);
}

.expertise-box h2 {
  font-family: 'Geist', sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 36px;
  color: var(--text-primary);
  letter-spacing: -0.2px;
  text-align: center;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}

.expertise-item {
  text-align: center;
  padding: 28px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: default;
}

.expertise-item:hover {
  transform: translateY(-6px);
  background: var(--bg-surface-hover);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-accent);
}

.expertise-icon {
  font-size: 34px;
  margin-bottom: 14px;
  transition: transform 0.3s ease;
}

.expertise-item:hover .expertise-icon {
  transform: scale(1.15);
}

.expertise-item strong {
  display: block;
  font-family: 'Geist', sans-serif;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.expertise-item p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
  font-weight: 300;
}

/* CTA Buttons */
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-pill);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(14, 118, 168, 0.4);
  opacity: 0.9;
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border-accent);
}

.btn-outline:hover {
  background: var(--accent-glow);
  transform: translateY(-2px);
  border-color: var(--accent);
}

.btn-linkedin {
  background: rgba(0, 119, 181, 0.12);
  color: #6db8e8;
  border: 1px solid rgba(0, 119, 181, 0.25);
}

.btn-linkedin:hover {
  background: rgba(0, 119, 181, 0.22);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 119, 181, 0.2);
}

.btn-resume {
  background: rgba(46, 109, 164, 0.12);
  color: #7ab4d4;
  border: 1px solid rgba(46, 109, 164, 0.25);
}

.btn-resume:hover {
  background: rgba(46, 109, 164, 0.22);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(46, 109, 164, 0.2);
}

/* ===============================================
   EXPERIENCE / TIMELINE SECTION
   =============================================== */
.experience-section {
  padding: 0 0 80px;
  position: relative;
  isolation: isolate;
}

/* Dark glass veil — blurs + crushes the bg image in this zone */
.experience-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  /* gradient fade at the very top so hero bleeds in naturally */
  background: linear-gradient(
    to bottom,
    rgba(8, 10, 14, 0.0)  0%,
    rgba(8, 10, 14, 0.88) 6%,
    rgba(8, 10, 14, 0.93) 100%
  );
  backdrop-filter: blur(4px) brightness(0.45) saturate(0.6);
  -webkit-backdrop-filter: blur(4px) brightness(0.45) saturate(0.6);
}

.timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding-left: 36px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: linear-gradient(180deg,
    var(--accent) 0%,
    rgba(77, 217, 240, 0.4) 50%,
    rgba(77, 217, 240, 0.08) 100%);
}

.timeline-item {
  position: relative;
  margin-bottom: 20px;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -40px;
  top: 22px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1.5px solid rgba(255,255,255,0.15);
  z-index: 1;
  transition: var(--transition);
}

.timeline-dot.is-current {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow), 0 0 12px rgba(77,217,240,0.4);
}

.timeline-content {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  transition: var(--transition);
}

.timeline-content:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-accent);
  transform: translateX(3px);
}

.timeline-item.is-current .timeline-content {
  border-left: 2px solid var(--accent);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.timeline-role {
  font-family: 'Geist', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 5px;
  line-height: 1.3;
}

.timeline-company {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.3px;
}

.timeline-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.timeline-date {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.timeline-badge {
  font-family: 'Geist Mono', monospace;
  font-size: 9px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 1px;
  text-transform: uppercase;
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid var(--border-accent);
}

.timeline-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.timeline-bullets li {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--text-secondary);
  padding-left: 16px;
  position: relative;
}

.timeline-bullets li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 15px;
  line-height: 1.5;
}

/* ===============================================
   PROJECTS SECTION
   =============================================== */
.projects-section {
  padding: 90px 0;
  position: relative;
  isolation: isolate;
}

.projects-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(8, 10, 14, 0.93);
  backdrop-filter: blur(4px) brightness(0.4) saturate(0.5);
  -webkit-backdrop-filter: blur(4px) brightness(0.4) saturate(0.5);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 22px;
  margin-top: 24px;
}

.project-subsection {
  margin-top: 56px;
}

.project-subtitle {
  font-family: 'Geist', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 8px;
}

.project-subtitle-description {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-secondary);
  text-align: center;
  margin: 8px auto 0;
  max-width: 540px;
}

.project-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-hover), var(--shadow-accent);
}

.project-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover img {
  transform: scale(1.04);
}

.project-info {
  padding: 28px;
}

.project-info h3,
.project-info h4 {
  font-family: 'Geist', sans-serif;
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

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

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  padding: 4px 12px;
  background: var(--bg-surface);
  color: var(--accent);
  border: 1px solid rgba(77, 217, 240, 0.15);
  border-radius: var(--radius-pill);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: var(--transition);
}

.tag:hover {
  background: var(--accent-glow);
  border-color: var(--border-accent);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.5px;
  transition: var(--transition);
}

.project-link:hover {
  color: #a8e6f0;
  gap: 10px;
}

.no-content {
  text-align: center;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 300;
  padding: 80px 20px;
}

/* ===============================================
   BLOG SECTION
   =============================================== */
.blog-section {
  padding: 90px 0;
  position: relative;
  isolation: isolate;
}

.blog-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(8, 10, 14, 0.93);
  backdrop-filter: blur(4px) brightness(0.4) saturate(0.5);
  -webkit-backdrop-filter: blur(4px) brightness(0.4) saturate(0.5);
}

.blog-search-form {
  max-width: 540px;
  margin: 0 auto 50px;
  display: flex;
  gap: 12px;
}

.search-input {
  flex: 1;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  font-size: 13px;
  font-family: 'Geist Mono', monospace;
  font-weight: 500;
  background: var(--bg-surface);
  color: var(--text-primary);
  transition: var(--transition);
  letter-spacing: 0.2px;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-input:focus {
  outline: none;
  border-color: var(--border-accent);
  background: rgba(77, 217, 240, 0.04);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

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

.blog-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}

.blog-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-hover), var(--shadow-accent);
}

.blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-image {
  transform: scale(1.04);
}

.blog-content {
  padding: 28px;
}

.blog-meta {
  display: flex;
  gap: 16px;
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 14px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.blog-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-card h3 {
  font-family: 'Geist', sans-serif;
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
  line-height: 1.35;
}

.blog-excerpt {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.read-more {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.5px;
  transition: gap 0.3s ease, color 0.3s ease;
}

.read-more:hover {
  gap: 12px;
  color: #a8e6f0;
}

/* ===============================================
   BLOG POST DETAIL
   =============================================== */
.blog-post-detail {
  padding: 80px 0;
  position: relative;
  isolation: isolate;
}

.post-enter {
  animation: postEnter 0.5s ease-out forwards;
}

@keyframes postEnter {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.blog-post-detail::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(8, 10, 14, 0.94);
  backdrop-filter: blur(4px) brightness(0.4) saturate(0.5);
  -webkit-backdrop-filter: blur(4px) brightness(0.4) saturate(0.5);
}

.post-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 40px;
}

.post-title {
  font-family: 'Stringer', sans-serif;
  font-size: 52px;
  font-weight: 100;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.post-meta {
  display: flex;
  justify-content: center;
  gap: 24px;
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  flex-wrap: wrap;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.post-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.post-image {
  width: 100%;
  max-width: 840px;
  height: auto;
  margin: 40px auto;
  display: block;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.post-content {
  max-width: 760px;
  margin: 40px auto;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--text-secondary);
}

.post-content p { margin-bottom: 22px; }

.post-content h1 {
  font-family: 'Stringer', sans-serif;
  font-size: 2.2em;
  font-weight: 100;
  margin: 48px 0 20px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.post-content h2 {
  font-family: 'Stringer', sans-serif;
  font-size: 1.7em;
  font-weight: 300;
  margin: 40px 0 16px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.post-content h3 {
  font-family: 'Geist', sans-serif;
  font-size: 1.3em;
  font-weight: 600;
  margin: 32px 0 14px;
  color: var(--text-primary);
}

.post-content ul,
.post-content ol {
  margin: 20px 0;
  padding-left: 28px;
}

.post-content ul li,
.post-content ol li {
  margin-bottom: 10px;
  line-height: 1.75;
}

.post-content ul li { list-style-type: disc; }
.post-content ol li { list-style-type: decimal; }

/* Inline code */
.post-content code {
  font-family: 'Geist Mono', monospace;
  background: rgba(77, 217, 240, 0.08);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.88em;
  color: var(--accent);
  font-weight: 500;
}

/* Code blocks */
.post-content pre {
  background: #0a0c10;
  color: #d4d4d4;
  padding: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 28px 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}

.post-content pre code {
  display: block;
  background: transparent;
  padding: 20px;
  color: #d4d4d4;
  font-size: 13.5px;
  line-height: 1.65;
  overflow-x: auto;
  font-weight: 400;
}

.post-content pre code[class*="language-"]::before {
  content: attr(class);
  position: absolute;
  top: 0;
  right: 0;
  padding: 3px 12px;
  font-size: 10px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.35);
  border-bottom-left-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.post-content pre code.language-java::before      { content: 'java';    background: rgba(237,109,49,0.15);  color: #f89820; }
.post-content pre code.language-javascript::before,
.post-content pre code.language-js::before        { content: 'js';      background: rgba(247,223,30,0.1);   color: #f7df1e; }
.post-content pre code.language-python::before    { content: 'python';  background: rgba(53,114,165,0.15);  color: #3572a5; }
.post-content pre code.language-bash::before,
.post-content pre code.language-shell::before     { content: 'bash';    background: rgba(137,224,81,0.1);   color: #89e051; }
.post-content pre code.language-sql::before       { content: 'sql';     background: rgba(77,217,240,0.1);   color: var(--accent); }
.post-content pre code.language-xml::before,
.post-content pre code.language-html::before      { content: 'html';    background: rgba(227,76,38,0.15);   color: #e34c26; }
.post-content pre code.language-css::before       { content: 'css';     background: rgba(86,61,124,0.15);   color: #a78bca; }
.post-content pre code.language-json::before      { content: 'json';    background: rgba(77,217,240,0.1);   color: var(--accent); }

.post-content pre code::-webkit-scrollbar         { height: 6px; }
.post-content pre code::-webkit-scrollbar-track   { background: rgba(255,255,255,0.03); }
.post-content pre code::-webkit-scrollbar-thumb   { background: rgba(255,255,255,0.15); border-radius: 3px; }
.post-content pre code::-webkit-scrollbar-thumb:hover { background: rgba(77,217,240,0.3); }

.post-content blockquote {
  border-left: 2px solid var(--accent);
  padding: 16px 24px;
  margin: 28px 0;
  font-style: italic;
  color: var(--text-secondary);
  background: rgba(77, 217, 240, 0.04);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.post-content a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(77, 217, 240, 0.3);
  transition: var(--transition);
}

.post-content a:hover {
  color: #a8e6f0;
  border-bottom-color: var(--accent);
}

.post-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

.post-content strong { font-weight: 600; color: var(--text-primary); }
.post-content em     { font-style: italic; color: var(--text-secondary); }

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-pill);
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  transition: var(--transition);
  margin-top: 48px;
  letter-spacing: 0.5px;
}

.back-btn:hover {
  background: var(--accent-glow);
  border-color: var(--border-accent);
  color: var(--accent);
  transform: translateX(-4px);
}

/* ===============================================
   FOOTER
   =============================================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 28px;
  text-align: center;
  position: relative;
  z-index: 1;
  isolation: isolate;
}

.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(6, 8, 12, 0.95);
  backdrop-filter: blur(6px) brightness(0.35) saturate(0.4);
  -webkit-backdrop-filter: blur(6px) brightness(0.35) saturate(0.4);
}

.footer .container {
  max-width: 1200px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 24px;
}

.social-links a {
  width: 42px;
  height: 42px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition);
  text-decoration: none;
}

.social-links a:hover {
  background: var(--accent-glow);
  border-color: var(--border-accent);
  color: var(--accent);
  transform: scale(1.1) rotate(5deg);
}

.visitor-count {
  margin: 20px 0;
  font-size: 14px;
  color: var(--text-muted);
}

#visitor-counter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: var(--transition);
}

#visitor-counter:hover {
  background: var(--accent-glow);
  border-color: var(--border-accent);
  color: var(--accent);
  transform: scale(1.03);
}

#visitor-counter i  { font-size: 14px; color: var(--accent); }
#visitor-number     { font-weight: 600; color: var(--text-primary); }

.footer p {
  font-size: 12px;
  font-family: 'Geist Mono', monospace;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.3px;
  margin: 16px 0 0;
}

/* ===============================================
   HERO PROFILE COMPONENT (shared)
   =============================================== */
.hero-section     { padding: 113.47px 0; }
.hero-content     { max-width: 33.33%; }

.hero-title {
  font-family: 'Stringer', sans-serif;
  font-size: 60.52px;
  font-weight: 100;
  line-height: 51.44px;
  letter-spacing: -2.42px;
  margin-bottom: 30px;
  color: var(--text-primary);
  animation-delay: 0.2s;
}

.hero-description {
  font-size: 20.8px;
  font-weight: 300;
  line-height: 33.29px;
  margin-bottom: 15px;
  color: var(--text-secondary);
}

.hero-profile {
  display: inline-flex;
  align-items: center;
  gap: 11.35px;
  margin-top: 15px;
  animation-delay: 0.6s;
}

.hero-profile-image {
  position: relative;
  width: 37.82px;
  height: 37.82px;
  border-radius: 5.67px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.hero-profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-profile-info {
  display: flex;
  flex-direction: column;
  gap: 1.89px;
}

.hero-profile-info span {
  color: var(--text-muted);
  font-size: 9.46px;
  font-family: 'Geist Mono', monospace;
  letter-spacing: 0.76px;
  line-height: 13.24px;
  text-transform: uppercase;
}

/* ===============================================
   ALL WORK / CAROUSEL (kept for compatibility)
   =============================================== */
.all-work-section {
  position: relative;
  padding-top: 113.47px;
  background: var(--bg-primary);
}

.all-work-title {
  font-family: 'Stringer', sans-serif;
  font-size: 36px;
  font-weight: 300;
  letter-spacing: -1.44px;
  text-align: center;
  margin-bottom: 60px;
  color: var(--text-primary);
}

.work-carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  z-index: 50;
  margin: 0 auto;
}

.work-carousel {
  display: flex;
  align-items: flex-start;
  transition: transform 0.5s ease;
  gap: 56px;
}

.work-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18.91px;
  min-width: 195.8px;
  flex-shrink: 0;
  transition: var(--transition);
}

.work-card:hover { transform: scale(1.05); }

.work-card-link {
  position: relative;
  aspect-ratio: 3 / 4;
  background-color: var(--bg-secondary);
  display: block;
  overflow: hidden;
  border-radius: 31.33px;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.work-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.work-card:hover .work-card-image { transform: scale(1.1); }

.work-card-title {
  font-family: 'Geist', sans-serif;
  font-size: 18.91px;
  font-weight: 600;
  line-height: 26.48px;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.carousel-btn:hover {
  background: var(--accent-glow);
  border-color: var(--border-accent);
  color: var(--accent);
  transform: scale(1.1);
}

.carousel-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.carousel-btn:disabled:hover {
  background: var(--bg-surface);
  color: var(--text-secondary);
  transform: scale(1);
}

.carousel-dots { display: flex; gap: 10px; }

.carousel-dot {
  width: 8px;
  height: 8px;
  background: var(--border);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}

.carousel-dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

/* ===============================================
   BLOG SIDEBAR (kept for compatibility)
   =============================================== */
.blog-container {
  display: flex;
  gap: 40px;
}

.blog-sidebar {
  flex: 0 0 25%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 31.33px;
}

.blog-header h2 {
  font-family: 'Stringer', sans-serif;
  font-size: 36px;
  font-weight: 300;
  letter-spacing: -1.44px;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.blog-drafts {
  font-size: 14px;
  color: var(--text-secondary);
}

.blog-main { flex: 1; }

.blog-post {
  background: var(--bg-card);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.blog-post:hover {
  transform: translateY(-5px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-accent);
}

.blog-post-title {
  font-family: 'Geist', sans-serif;
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.blog-post-meta {
  font-size: 13px;
  font-family: 'Geist Mono', monospace;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.blog-post-excerpt {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ===============================================
   RESPONSIVE
   =============================================== */
@media (min-width: 768px) {
  body {
    font-size: 15.67px;
    line-height: 26.63px;
  }

  .home-intro h1 {
    font-size: 96px;
    line-height: 0.94;
    letter-spacing: -4px;
  }
}

@media (max-width: 768px) {
  .navbar .container {
    padding: 0.6rem 20px;
  }

  .hamburger { display: flex; }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 62px;
    flex-direction: column;
    background: rgba(12, 14, 18, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    width: 100%;
    text-align: center;
    transition: left 0.3s ease;
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    gap: 0;
  }

  .nav-menu.active { left: 0; }
  .nav-menu li { padding: 4px 0; }

  .nav-link {
    display: block;
    padding: 12px 20px;
  }

  .home-section { padding: 80px 0 70px; }

  .home-intro h1 {
    font-size: 52px;
    line-height: 1.05;
  }

  .subtitle { font-size: 11px; }

  .expertise-box { padding: 28px 20px; }

  .expertise-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn { justify-content: center; }

  .projects-grid { grid-template-columns: 1fr; }
  .blog-grid     { grid-template-columns: 1fr; }

  .blog-search-form { flex-direction: column; }

  .section-title { font-size: 40px; }
  .post-title    { font-size: 38px; }

  .post-meta {
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }

  .post-content { font-size: 16px; }
}

@media (max-width: 480px) {
  .home-intro h1 { font-size: 40px; }

  .section-title { font-size: 34px; }

  .expertise-grid { grid-template-columns: 1fr; }

  .project-info,
  .blog-content { padding: 20px; }
}
