/* ======================================================
   Personal Website Stylesheet (Based on the CV Design)
   ======================================================

   HOW TO USE:
   1. Build semantic HTML (header, section, nav, footer).
   2. Apply the class names referenced below.
   3. This design is meant to feel modern, minimal, and soft-tech.
   4. Keep content width constrained for readability.
   5. Works great for portfolios, developer sites, or academic pages.

   DESIGN PRINCIPLES:
   - Calm background + elevated cards
   - One strong accent color
   - Generous whitespace
   - Soft shadows instead of borders
   - Rounded geometry ("approachable tech" look)
   - Typography-driven hierarchy

====================================================== */

:root {
  --accent: #6C63FF;
  --accent-soft: #F3F2FF;
  --text: #1F2933;
  --muted: #6B7280;
  --bg: #F7F8FC;
  --surface: #FFFFFF;

  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 8px;

  --shadow-soft: 0 10px 30px rgba(0,0,0,0.06);
  --shadow-hover: 0 20px 60px rgba(0,0,0,0.12);

  --max-width: 1100px;
}

/* ========== Base Reset ========== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

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

/* ========== Layout Helpers ========== */

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

.section {
  margin-bottom: 100px;
}

.grid {
  display: grid;
  gap: 28px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* ========== Navigation ========== */

.nav {
  position: sticky;
  top: 0;
  backdrop-filter: blur(12px);
  background: rgba(247,248,252,0.75);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  z-index: 10;
}

.nav-inner {
  max-width: var(--max-width);
  margin: auto;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 24px;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

/* ========== Hero Section ========== */

.hero {
  padding: 120px 24px 80px;
  max-width: var(--max-width);
  margin: auto;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 650;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.hero p {
  font-size: 20px;
  color: var(--muted);
  max-width: 640px;
}

/* ========== Card Components ========== */

.card {
  background: var(--surface);
  padding: 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  color: var(--muted);
}

/* ========== Section Headings ========== */

.section-title {
  font-size: 26px;
  margin-bottom: 24px;
  position: relative;
}

.section-title::after {
  content: "";
  width: 42px;
  height: 4px;
  background: var(--accent);
  position: absolute;
  bottom: -10px;
  left: 0;
  border-radius: 2px;
}

/* ========== Buttons ========== */

.button {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(108,99,255,0.35);
}

.button.secondary {
  background: var(--accent-soft);
  color: var(--accent);
}

/* ========== Tag / Skill Pills ========== */

.tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  margin: 4px 6px 0 0;
}

/* ========== Timeline (Great for Experience) ========== */

.timeline-item {
  padding-left: 20px;
  border-left: 2px solid var(--accent-soft);
  margin-bottom: 26px;
}

.timeline-item span {
  font-size: 14px;
  color: var(--muted);
}

/* ========== Footer ========== */

.footer {
  text-align: center;
  padding: 60px 24px;
  color: var(--muted);
}

/* ========== Responsive Feel ========== */

@media (max-width: 700px) {
  .hero {
    padding-top: 80px;
  }

  .container {
    padding: 60px 20px;
  }
}

/* ======================================================
   SUGGESTED HTML STRUCTURE (for your reference only)

   nav.nav > .nav-inner
   section.hero
   section.section (About)
   section.section (Projects) -> .grid .card
   section.section (Experience) -> .timeline-item
   section.section (Contact)
   footer.footer

   Keep sections modular. This CSS is component-based,
   not page-locked like the CV version.
====================================================== */
.icon {
  width: 52px;
  height: 52px;
  display: inline-block; /* ensures it's not collapsed */
}

/* ================================
   BLOG INDEX / BROWSING PAGE
   Soft-tech minimal aesthetic
================================ */

/* --- Layout --- */

.blog-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 100px 24px 80px;
}

.blog-header {
  margin-bottom: 60px;
}

.blog-header h1 {
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.blog-header p {
  color: #6B7280;
  font-size: 18px;
  max-width: 600px;
}

/* --- Grid Layout --- */

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

/* --- Blog Card --- */

.blog-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

/* --- Card Content --- */

.blog-card h2 {
  font-size: 20px;
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-card h2 a {
  text-decoration: none;
  color: #1F2933;
  transition: color 0.2s ease;
}

.blog-card h2 a:hover {
  color: #6C63FF;
}

.blog-meta {
  font-size: 14px;
  color: #6B7280;
  margin-bottom: 14px;
}

.blog-excerpt {
  color: #4B5563;
  font-size: 15px;
  margin-bottom: 18px;
}

/* --- Tags --- */

.blog-tags {
  margin-top: auto;
}

.blog-tag {
  display: inline-block;
  background: #F3F2FF;
  color: #6C63FF;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  margin: 4px 6px 0 0;
}

/* --- Read More Link --- */

.read-more {
  margin-top: 16px;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  color: #6C63FF;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s ease;
}

.read-more:hover {
  transform: translateX(4px);
}

/* --- Featured Post (Optional Highlight Card) --- */

.blog-card.featured {
  grid-column: span 2;
  padding: 40px;
  background: linear-gradient(145deg, #6C63FF, #8B85FF);
  color: white;
}

.blog-card.featured h2 a {
  color: white;
}

.blog-card.featured .blog-meta,
.blog-card.featured .blog-excerpt {
  color: rgba(255,255,255,0.85);
}

.blog-card.featured .blog-tag {
  background: rgba(255,255,255,0.2);
  color: white;
}

/* --- Pagination --- */

.blog-pagination {
  margin-top: 80px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.blog-pagination a {
  padding: 10px 16px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  text-decoration: none;
  color: #1F2933;
  transition: all 0.2s ease;
}

.blog-pagination a:hover {
  background: #6C63FF;
  color: white;
}
/* =============================
   BLOG ARTICLE PAGE
============================= */

.blog-article {
  max-width: 900px;
  margin: 80px auto;
  padding: 0 24px;
  font-family: "Inter", sans-serif;
  line-height: 1.7;
  color: #1F2933;
}

.blog-article-header {
  text-align: center;
  margin-bottom: 40px;
}

.blog-article-title {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
}

.blog-meta {
  color: #6B7280;
  font-size: 14px;
}

.blog-article-body {
  margin-bottom: 40px;
}

.article-heading {
  font-size: clamp(20px, 3vw, 28px);
  margin: 32px 0 16px;
  color: #1F2933;
  font-weight: 600;
}

.article-paragraph {
  font-size: 16px;
  color: #4B5563;
  margin-bottom: 20px;
}

.article-image {
  margin: 30px 0;
  text-align: center;
}

.article-image img {
  border-radius: 18px;
  width: 100%;
  max-width: 100%;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.article-image img:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.article-video {
  margin: 30px 0;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.06);
}

.article-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.blog-tags {
  margin-top: 40px;
}

.blog-tag {
  display: inline-block;
  background: #F3F2FF;
  color: #6C63FF;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  margin: 4px 6px 0 0;
}
/* Buttons */
form .btn-primary {
  background-color: #6C63FF;
  border: none;
  border-radius: 12px;
  transition: all 0.2s ease;
}

form .btn-primary:hover {
  background-color: #574ecc;
  transform: translateY(-2px);
}