/* ============================================================
   PORTFOLIO V2 — Modernized Dark Theme
   Blends LocalMind dark aesthetic with purple/cyan palette
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ---- CSS Variables ---- */
:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-card: #1a1f2e;
  --bg-card-hover: #222840;
  --border-color: #2a3040;
  --border-glow: rgba(88, 166, 255, 0.3);
  --text-primary: #f0f4fc;
  --text-secondary: #8b95a8;
  --text-muted: #5a6478;
  --accent-purple: #7c3aed;
  --accent-purple-light: #a78bfa;
  --accent-cyan: #22d3ee;
  --accent-blue: #58a6ff;
  --accent-gradient: linear-gradient(135deg, #7c3aed, #22d3ee);
  --accent-gradient-hover: linear-gradient(135deg, #6d28d9, #06b6d4);
  --success: #34d399;
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.4);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 30px rgba(124, 58, 237, 0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: var(--accent-purple);
  color: #fff;
}

a { color: var(--accent-cyan); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-purple-light); }

img { max-width: 100%; height: auto; display: block; }

ul, ol { list-style: none; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ---- Container ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
  background: transparent;
}

.nav.scrolled {
  background: rgba(10, 14, 23, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-brand .brand-icon {
  width: 32px;
  height: 32px;
  background: var(--accent-gradient);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 1px;
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile Nav */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 24px;
    transition: right var(--transition);
    border-left: 1px solid var(--border-color);
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 1.1rem; }
}


/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg .gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
}

.hero-bg .orb-1 {
  width: 600px;
  height: 600px;
  background: var(--accent-purple);
  top: -200px;
  right: -100px;
  opacity: 0.15;
}

.hero-bg .orb-2 {
  width: 400px;
  height: 400px;
  background: var(--accent-cyan);
  bottom: -100px;
  left: -100px;
  opacity: 0.1;
}

.hero-bg .grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124, 58, 237, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--accent-purple-light);
  margin-bottom: 24px;
  font-weight: 500;
}

.hero-badge .pulse {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.hero h1 .gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .subtitle {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-weight: 400;
}

.hero .hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-social {
  display: flex;
  gap: 12px;
}

.hero-social a {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition);
}

.hero-social a:hover {
  border-color: var(--accent-purple);
  color: var(--accent-purple-light);
  background: rgba(124, 58, 237, 0.08);
  transform: translateY(-2px);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-primary);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
  background: var(--accent-gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(34, 211, 238, 0.05);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

/* ============================================================
   SECTION COMMON
   ============================================================ */
.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
  margin-bottom: 12px;
  font-family: var(--font-mono);
}

.section-label::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--accent-cyan);
  border-radius: 1px;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

.about-image-wrapper {
  position: relative;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--border-color);
  position: relative;
}

.about-image img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.about-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(10, 14, 23, 0.6));
  pointer-events: none;
}

.about-image-wrapper .floating-badge {
  position: absolute;
  bottom: -16px;
  right: -16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-md);
}

.floating-badge .badge-icon {
  width: 36px;
  height: 36px;
  background: var(--accent-gradient);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.floating-badge .badge-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.floating-badge .badge-sub {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.about-text h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-text p:last-of-type {
  margin-bottom: 24px;
}

/* ============================================================
   SKILLS SECTION
   ============================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: var(--transition);
}

.skill-card:hover {
  border-color: var(--accent-purple);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.skill-card .skill-icon {
  width: 48px;
  height: 48px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.skill-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.skill-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.skill-tag {
  padding: 4px 12px;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.15);
  border-radius: 100px;
  font-size: 0.78rem;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-weight: 500;
}


/* ============================================================
   FEATURED PROJECT (LocalMind)
   ============================================================ */
.featured-project {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.featured-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
  .featured-card { grid-template-columns: 1fr; }
}

.featured-preview {
  background: var(--bg-primary);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 400px;
}

.featured-preview .mockup {
  width: 100%;
  max-width: 420px;
  background: #161b22;
  border-radius: var(--radius-md);
  border: 1px solid #30363d;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(22, 27, 34, 0.9);
  border-bottom: 1px solid #30363d;
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mockup-dot.red { background: #f85149; }
.mockup-dot.yellow { background: #d29922; }
.mockup-dot.green { background: #2ea043; }

.mockup-header .mockup-title {
  margin-left: 8px;
  font-size: 0.8rem;
  color: #8b949e;
  font-family: var(--font-mono);
}

.mockup-body {
  padding: 24px;
}

.mockup-body .chat-bubble {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.82rem;
  line-height: 1.5;
  margin-bottom: 12px;
  max-width: 85%;
}

.chat-bubble.user {
  background: #1f6feb;
  color: #fff;
  margin-left: auto;
  border-bottom-right-radius: 4px;
}

.chat-bubble.ai {
  background: #21262d;
  color: #f0f6fc;
  border: 1px solid #30363d;
  border-bottom-left-radius: 4px;
}

.mockup-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #21262d;
  border: 1px solid #30363d;
  border-radius: 8px;
  margin-top: 16px;
}

.mockup-input span {
  font-size: 0.8rem;
  color: #8b949e;
}

.mockup-input .send-icon {
  margin-left: auto;
  width: 28px;
  height: 28px;
  background: #58a6ff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-info {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-info .project-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  margin-bottom: 12px;
}

.featured-info h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.featured-info p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.featured-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tech-tag {
  padding: 5px 14px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 100px;
  font-size: 0.78rem;
  color: var(--accent-purple-light);
  font-family: var(--font-mono);
  font-weight: 500;
}

.featured-links {
  display: flex;
  gap: 12px;
}

/* ============================================================
   PROJECTS GRID
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

@media (max-width: 768px) {
  .projects-grid { grid-template-columns: 1fr; }
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.project-card:hover {
  border-color: var(--accent-purple);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.project-card .card-image {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}

.project-card .card-body {
  padding: 24px;
}

.project-card .card-category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  margin-bottom: 8px;
}

.project-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.project-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.project-card .card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-card .card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.card-tags .tag {
  padding: 3px 10px;
  background: rgba(88, 166, 255, 0.08);
  border-radius: 100px;
  font-size: 0.72rem;
  color: var(--accent-blue);
  font-family: var(--font-mono);
}

.project-card .card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-purple-light);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.project-card .card-link:hover {
  color: var(--accent-cyan);
}

/* ============================================================
   EXPERIENCE SECTION
   ============================================================ */
.timeline {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-purple), var(--accent-cyan), transparent);
}

.timeline-item {
  padding-left: 56px;
  position: relative;
  margin-bottom: 40px;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-item .timeline-dot {
  position: absolute;
  left: 12px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 3px solid var(--accent-purple);
}

.timeline-item .timeline-date {
  font-size: 0.82rem;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-weight: 500;
  margin-bottom: 4px;
}

.timeline-item h4 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.timeline-item .timeline-company {
  font-size: 0.95rem;
  color: var(--accent-purple-light);
  margin-bottom: 8px;
}

.timeline-item .timeline-company a {
  color: var(--accent-purple-light);
}

.timeline-item .timeline-company a:hover {
  color: var(--accent-cyan);
}

.timeline-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.7;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-link-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.contact-link-item:hover {
  border-color: var(--accent-purple);
  background: var(--bg-card-hover);
}

.contact-link-item .link-icon {
  width: 44px;
  height: 44px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-link-item .link-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-link-item .link-value {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 500;
}

.contact-social {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
}

.contact-social h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.contact-social p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.social-links a {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.4rem;
  transition: var(--transition);
}

.social-links a:hover {
  border-color: var(--accent-purple);
  color: var(--accent-purple-light);
  background: rgba(124, 58, 237, 0.08);
  transform: translateY(-3px);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.footer p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer .heart {
  color: #f85149;
}

/* ============================================================
   ARTICLES PAGE
   ============================================================ */
.page-hero {
  padding: 140px 0 60px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.page-hero .hero-bg { position: absolute; inset: 0; z-index: 0; }

.page-hero .container { position: relative; z-index: 1; }

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

@media (max-width: 768px) {
  .articles-grid { grid-template-columns: 1fr; }
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.article-card:hover {
  border-color: var(--accent-purple);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.article-card .card-image {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}

.article-card .card-body {
  padding: 24px;
}

.article-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.article-card h4 a {
  color: var(--text-primary);
}

.article-card h4 a:hover {
  color: var(--accent-purple-light);
}

.article-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* ============================================================
   ARTICLE SINGLE PAGE
   ============================================================ */
.article-content {
  max-width: 800px;
  margin: 0 auto;
}

.article-content h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.article-meta {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.article-meta .author {
  color: var(--accent-purple-light);
  font-weight: 600;
}

.article-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.article-body img {
  border-radius: var(--radius-md);
  margin: 24px 0;
  border: 1px solid var(--border-color);
}

.article-body p {
  margin-bottom: 20px;
}

.article-body blockquote {
  padding: 16px 24px;
  background: var(--bg-card);
  border-left: 3px solid var(--accent-purple);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
  font-style: italic;
  color: var(--text-primary);
}

.article-source {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.article-source a {
  font-weight: 600;
  color: var(--accent-cyan);
}

/* ============================================================
   UTILITIES & ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Typing cursor animation for hero */
.typing-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--accent-cyan);
  margin-left: 4px;
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
