/* ═══════════════════════════════════════════
   YOSEPH.DEV — REDESIGN STYLESHEET
   Dark mode first, full light mode toggle,
   responsive from 320px up.
═══════════════════════════════════════════ */

/* ──────────────────────────────────────────
   1. DESIGN TOKENS
────────────────────────────────────────── */
:root {
  /* Dark palette (default) */
  --bg-0: #0d1117;
  --bg-1: #161b22;
  --bg-2: #21262d;
  --bg-card: #1c2128;
  --border: #30363d;
  --border-hover: #58a6ff;

  --accent: #58a6ff;
  --accent-hover: #79b8ff;
  --accent-dim: rgba(88, 166, 255, 0.12);
  --green: #3fb950;
  --green-dim: rgba(63, 185, 80, 0.15);
  --orange: #d29922;
  --red: #ff7b72;

  --text-1: #e6edf3;
  --text-2: #8b949e;
  --text-3: #6e7681;

  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 24px rgba(88, 166, 255, 0.15);

  --header-h: 64px;
  --max-w: 1120px;
  --transition: 0.25s ease;
  --transition-slow: 0.4s ease;
}

[data-theme="light"] {
  --bg-0: #f6f8fa;
  --bg-1: #ffffff;
  --bg-2: #f0f3f6;
  --bg-card: #ffffff;
  --border: #d0d7de;
  --border-hover: #0969da;

  --accent: #0969da;
  --accent-hover: #0550ae;
  --accent-dim: rgba(9, 105, 218, 0.08);
  --green: #1a7f37;
  --green-dim: rgba(26, 127, 55, 0.1);
  --orange: #9a6700;

  --text-1: #1c2128;
  --text-2: #57606a;
  --text-3: #8c959f;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-glow: 0 0 24px rgba(9, 105, 218, 0.12);
}

/* ──────────────────────────────────────────
   2. RESET & BASE
────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
  font-family: var(--font-sans);
  background: var(--bg-0);
  color: var(--text-1);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }
.section:nth-child(even) { background: var(--bg-1); }

/* ──────────────────────────────────────────
   3. TYPOGRAPHY HELPERS
────────────────────────────────────────── */
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text-1);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-2);
  max-width: 560px;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, #a371f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* ──────────────────────────────────────────
   4. BUTTONS
────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 0 rgba(88,166,255,0.4);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(88,166,255,0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--text-1);
  border-color: var(--border);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  padding-left: 4px;
  padding-right: 4px;
}
.btn-ghost:hover { color: var(--accent); }

.btn-sm {
  padding: 7px 16px;
  font-size: 13px;
}

.btn-full { width: 100%; justify-content: center; }

/* ──────────────────────────────────────────
   5. BADGES
────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.badge-featured {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(88,166,255,0.25);
}
.badge-tech {
  background: var(--bg-2);
  color: var(--text-2);
  border: 1px solid var(--border);
}
.badge-acquisition {
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid rgba(63,185,80,0.25);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px var(--green-dim);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--green-dim); }
  50% { box-shadow: 0 0 0 6px transparent; }
}

/* ──────────────────────────────────────────
   6. HEADER & NAVIGATION
────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), border-color var(--transition);
}

[data-theme="light"] .header {
  background: rgba(246, 248, 250, 0.9);
}

.header.scrolled {
  background: rgba(13, 17, 23, 0.97);
  box-shadow: var(--shadow);
}

[data-theme="light"] .header.scrolled {
  background: rgba(246, 248, 250, 0.98);
}

.nav {
  display: flex;
  align-items: center;
  height: var(--header-h);
  gap: 32px;
}

.nav-logo {
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-mono);
  flex-shrink: 0;
  transition: opacity var(--transition);
}
.nav-logo:hover { opacity: 0.8; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: all var(--transition);
}
.nav-link:hover,
.nav-link.active {
  color: var(--text-1);
  background: var(--bg-2);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  color: var(--text-2);
  background: var(--bg-2);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.theme-toggle:hover { color: var(--text-1); border-color: var(--accent); }

[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--border);
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--text-1);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ──────────────────────────────────────────
   7. HERO
────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.25;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content { max-width: 560px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--green-dim);
  border: 1px solid rgba(63,185,80,0.3);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--green);
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 24px;
}

.hero-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.tech-tag {
  padding: 4px 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  font-family: var(--font-mono);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: fit-content;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px;
}

.stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  font-family: var(--font-mono);
}

.stat-label {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 500;
  margin-top: 4px;
  white-space: nowrap;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
  flex-shrink: 0;
}

/* Code card */
.hero-visual { display: flex; justify-content: center; align-items: center; }

.code-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 440px;
  transform: perspective(800px) rotateY(-4deg) rotateX(2deg);
  transition: transform var(--transition-slow);
}

.code-card:hover {
  transform: perspective(800px) rotateY(0deg) rotateX(0deg);
}

.code-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-2);
  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; }

.code-filename {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-2);
  margin-left: auto;
}

.code-body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  white-space: pre;
  overflow-x: auto;
}

.code-keyword { color: #ff7b72; }
.code-var { color: var(--accent); }
.code-prop { color: #79c0ff; }
.code-string { color: #a5d6ff; }
.code-bool { color: #ff7b72; }

/* ──────────────────────────────────────────
   8. ABOUT
────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 80px;
  align-items: center;
}

.about-image-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.about-avatar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--border);
  box-shadow: var(--shadow-glow);
  position: relative;
  background: var(--bg-2);
}

.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-avatar-fallback {
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-mono);
}

.about-availability {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--green);
  font-weight: 500;
  background: var(--green-dim);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(63,185,80,0.3);
}

.about-text {
  color: var(--text-2);
  margin-bottom: 16px;
  font-size: 1rem;
}

.about-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 24px 0;
}

.fact {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
  font-weight: 500;
}

.fact svg { color: var(--accent); flex-shrink: 0; }

.about-cta {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

/* ──────────────────────────────────────────
   9. SERVICES
────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
}

.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.service-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 16px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.service-tags li {
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 600;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-3);
  font-family: var(--font-mono);
}

/* ──────────────────────────────────────────
   10. SKILLS
────────────────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.skill-group {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.skill-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 20px;
}

.skill-list { display: flex; flex-direction: column; gap: 14px; }

.skill-item {
  display: grid;
  grid-template-columns: 130px 1fr 40px;
  align-items: center;
  gap: 12px;
}

.skill-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.skill-bar {
  height: 5px;
  background: var(--bg-2);
  border-radius: 3px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #a371f7);
  border-radius: 3px;
  width: 0%;
  transition: width 1s ease;
}

.skill-pct {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  font-family: var(--font-mono);
  text-align: right;
}

/* ──────────────────────────────────────────
   11. PROJECTS
────────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

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

.project-card.featured {
  border-color: rgba(88, 166, 255, 0.3);
}

/* Project card screenshot image */
.project-img-wrap {
  width: 100%;
  height: 156px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
}

.project-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.project-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 8px;
}

.project-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  color: var(--text-3);
  background: var(--bg-2);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.project-links a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.project-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-1);
}

.project-desc {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.65;
  flex-grow: 1;
  margin-bottom: 14px;
}

.project-impact {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.project-impact span {
  font-size: 11px;
  color: var(--text-2);
  background: var(--bg-2);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.project-tech li {
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--accent);
  background: var(--accent-dim);
  padding: 2px 8px;
  border-radius: 4px;
}

.projects-cta {
  text-align: center;
}

/* ──────────────────────────────────────────
   12. TESTIMONIALS
────────────────────────────────────────── */
.testimonials { overflow: hidden; }

.testimonials-carousel {
  position: relative;
}

.testimonials-track {
  display: flex;
  gap: 20px;
  transition: transform var(--transition-slow);
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  min-width: calc(33.333% - 14px);
  flex-shrink: 0;
  transition: border-color var(--transition);
}

.testimonial-card.active {
  border-color: var(--accent);
}

.testimonial-stars {
  color: #f0b429;
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.testimonial-card blockquote {
  font-size: 0.95rem;
  color: var(--text-1);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 20px;
  position: relative;
}

.testimonial-card blockquote::before {
  content: '"';
  font-size: 3rem;
  color: var(--accent);
  opacity: 0.3;
  position: absolute;
  top: -12px;
  left: -8px;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-mono);
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.testimonial-author span {
  font-size: 12px;
  color: var(--text-3);
}

.testimonials-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.testimonial-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  transition: all var(--transition);
}

.testimonial-btn:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}

.testimonial-dots {
  display: flex;
  gap: 6px;
}

.testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  transition: all var(--transition);
  cursor: pointer;
}

.testimonial-dot.active {
  background: var(--accent);
  border-color: var(--accent);
  width: 20px;
  border-radius: 4px;
}

/* ──────────────────────────────────────────
   13. BLOG
────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

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

.blog-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.blog-tag {
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 600;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 20px;
  border: 1px solid rgba(88,166,255,0.25);
}

.blog-date {
  font-size: 12px;
  color: var(--text-3);
}

.blog-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 10px;
}

.blog-card h3 a {
  color: var(--text-1);
  transition: color var(--transition);
}
.blog-card h3 a:hover { color: var(--accent); }

.blog-card p {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.65;
  flex-grow: 1;
  margin-bottom: 16px;
}

.blog-read {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-top: auto;
  transition: gap var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.blog-read:hover { gap: 8px; }

.blog-cta {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ──────────────────────────────────────────
   14. CONTACT
────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-desc {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-top: -4px;
  margin-bottom: 32px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.contact-item:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
}

.contact-item svg { color: var(--accent); flex-shrink: 0; }

.contact-availability {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--green);
  font-weight: 500;
}

/* Form */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 10px 14px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-1);
  font-size: 14px;
  transition: border-color var(--transition);
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-3);
}

.form-group select option {
  background: var(--bg-1);
  color: var(--text-1);
}

.form-error {
  font-size: 12px;
  color: var(--red);
  min-height: 16px;
}

.form-group.has-error input,
.form-group.has-error textarea {
  border-color: var(--red);
}

.form-success {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--green-dim);
  border: 1px solid rgba(63,185,80,0.3);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--green);
}

.form-success[hidden] {
  display: none;
}

/* ──────────────────────────────────────────
   15. FOOTER
────────────────────────────────────────── */
.footer {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
  margin-top: 12px;
  margin-bottom: 20px;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  transition: all var(--transition);
}

.footer-social a:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
}

.footer-links h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-1);
  margin-bottom: 16px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-2);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-3);
}

.back-to-top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  transition: all var(--transition);
}

.back-to-top:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ──────────────────────────────────────────
   16. SCROLL ANIMATIONS
────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.fade-up:nth-child(1) { transition-delay: 0.05s; }
.fade-up:nth-child(2) { transition-delay: 0.12s; }
.fade-up:nth-child(3) { transition-delay: 0.18s; }
.fade-up:nth-child(4) { transition-delay: 0.24s; }
.fade-up:nth-child(5) { transition-delay: 0.30s; }
.fade-up:nth-child(6) { transition-delay: 0.36s; }

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ──────────────────────────────────────────
   17. RESPONSIVE — TABLET (≤900px)
────────────────────────────────────────── */
@media (max-width: 900px) {
  .section { padding: 72px 0; }

  .hero .container {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-content { max-width: 100%; }

  .hero-tech,
  .hero-cta { justify-content: center; }

  .hero-stats {
    margin: 0 auto;
  }

  .hero-visual {
    justify-content: center;
  }

  .code-card {
    transform: none;
    max-width: 480px;
  }
  .code-card:hover { transform: none; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .about-image-wrap { margin: 0 auto; }

  .about-facts {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }

  .about-cta { justify-content: center; }

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

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

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonial-card {
    min-width: calc(50% - 10px);
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand { grid-column: 1 / -1; }
}

/* ──────────────────────────────────────────
   18. RESPONSIVE — MOBILE (≤600px)
────────────────────────────────────────── */
@media (max-width: 600px) {
  .section { padding: 56px 0; }

  .nav-links { display: none; }
  .hamburger { display: flex; }

  /* Mobile nav overlay */
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-0);
    padding: 32px 24px;
    gap: 8px;
    z-index: 99;
    animation: slideDown 0.25s ease;
  }

  .nav-links.open .nav-link {
    font-size: 18px;
    padding: 12px 16px;
  }

  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .hero-stats {
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
  }

  .stat { padding: 8px 14px; }

  .stat-divider { display: none; }

  .about-facts {
    grid-template-columns: 1fr;
  }

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

  .testimonial-card {
    min-width: calc(100% - 0px);
  }

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

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

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .skill-item {
    grid-template-columns: 110px 1fr 36px;
  }
}

/* ──────────────────────────────────────────
   19. REDUCED MOTION
────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .fade-up, .reveal {
    opacity: 1;
    transform: none;
  }
}
