/* ==========================================================================
   Modern Professional Light Theme
   Inspired by: Stripe, Vercel, Linear
   Focus: Clean, Minimal, Professional, Trustworthy
   ========================================================================== */

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

/* ==========================================================================
   CSS Custom Properties (Design Tokens)
   ========================================================================== */
:root {
  /* Color Palette - Modern Light */
  --bg-primary: #FAFAFA;
  --bg-surface: #FFFFFF;
  --bg-secondary: #F8FAFC;

  /* Primary Colors */
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --primary-light: #3B82F6;
  --primary-lighter: #DBEAFE;

  /* Secondary Colors */
  --secondary: #F59E0B;
  --secondary-hover: #D97706;

  /* Text Colors */
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --text-light: #94A3B8;

  /* Border Colors */
  --border-light: #E2E8F0;
  --border-medium: #CBD5E1;

  /* Accent Colors */
  --success: #10B981;
  --info: #3B82F6;
  --warning: #F59E0B;
  --error: #EF4444;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
  --gradient-secondary: linear-gradient(135deg, #F59E0B 0%, #F97316 100%);
  --gradient-surface: linear-gradient(to bottom, #F8FAFC 0%, #FFFFFF 100%);

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);

  /* Layout */
  --container-width: 1200px;
  --container-narrow: 800px;
  --header-height: 70px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-thai: 'Prompt', 'Inter', sans-serif;

  /* Font Sizes (Fluid) */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.85rem + 0.125vw, 0.9375rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.375vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.35rem + 0.75vw, 1.875rem);
  --text-3xl: clamp(1.875rem, 1.65rem + 1.125vw, 2.25rem);
  --text-4xl: clamp(2.25rem, 1.95rem + 1.5vw, 3rem);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-thai);
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: var(--header-height);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--text-4xl);
  font-weight: 800;
}

h2 {
  font-size: var(--text-3xl);
}

h3 {
  font-size: var(--text-2xl);
}

h4 {
  font-size: var(--text-xl);
}

h5 {
  font-size: var(--text-lg);
}

h6 {
  font-size: var(--text-base);
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: all 0.2s ease;
}

a:hover {
  color: var(--primary-hover);
}

ul,
ol {
  list-style: none;
}

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

strong {
  font-weight: 600;
  color: var(--text-primary);
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.container-full {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
}

.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
body>header:first-of-type {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  box-shadow: var(--shadow-xs);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo-text {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: var(--text-xl);
  color: var(--primary);
  letter-spacing: -0.02em;
  transition: transform 0.2s ease;
}

.logo-text:hover {
  transform: scale(1.02);
}

.nav-links {
  display: flex;
  gap: clamp(1.5rem, 3vw, 2rem);
  align-items: center;
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.5rem 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
  width: 100%;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: calc(var(--header-height) * -1);
  padding-top: var(--header-height);
  background: linear-gradient(135deg, #F0F9FF 0%, #FFFFFF 50%, #FEF3C7 100%);
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 1000px;
  height: 1000px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  animation: fadeInUp 0.8s ease-out;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}

.hero-badge-dot {
  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.7;
    transform: scale(1.1);
  }
}

.hero-title {
  font-size: var(--text-4xl);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--text-base);
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  font-family: var(--font-sans);
}

.btn-primary {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 2px solid var(--border-medium);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-section {
  padding: clamp(4rem, 8vw, 6rem) 0;
  background: var(--bg-surface);
}

.section-header {
  text-align: center;
  margin-bottom: clamp(3rem, 6vw, 4rem);
}

.section-title {
  font-size: var(--text-3xl);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.section-header p {
  color: var(--text-muted);
  font-size: var(--text-lg);
  max-width: 600px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(1.5rem, 3vw, 2rem);
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-lighter);
}

.card-icon {
  width: 64px;
  height: 64px;
  background: var(--primary-lighter);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.feature-card:hover .card-icon {
  background: var(--primary);
  color: #FFFFFF;
  transform: scale(1.05);
}

.card-title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.card-desc {
  color: var(--text-secondary);
  font-size: var(--text-base);
  line-height: 1.7;
}

/* ==========================================================================
   Blog Posts Section
   ========================================================================== */
.latest-posts {
  padding: clamp(4rem, 8vw, 6rem) 0;
  background: var(--bg-primary);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: clamp(1.5rem, 3vw, 2rem);
}

.post-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  height: 100%;
  box-shadow: var(--shadow-sm);
}

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-lighter);
}

.post-thumbnail {
  height: 200px;
  overflow: hidden;
  background: var(--bg-secondary);
}

.post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-card:hover .post-thumbnail img {
  transform: scale(1.05);
}

.post-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.post-meta {
  font-size: var(--text-xs);
  color: var(--primary);
  margin-bottom: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.post-title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.post-title a {
  color: var(--text-primary);
}

.post-title a:hover {
  color: var(--primary);
}

.post-excerpt {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  flex-grow: 1;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.read-more-link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s ease;
}

.read-more-link:hover {
  gap: 0.75rem;
  color: var(--primary-hover);
}

/* ==========================================================================
   Single Post Page
   ========================================================================== */
.single-post-container {
  padding-bottom: 4rem;
  min-height: 100vh;
  background: var(--bg-surface);
}

.post-page-header {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--border-light);
}

.post-page-title {
  font-size: var(--text-3xl);
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-primary);
  line-height: 1.2;
}

.post-page-meta {
  font-size: var(--text-sm);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.post-page-meta i {
  color: var(--primary);
}

.post-category {
  color: var(--primary);
  font-weight: 600;
}

/* Article Content Typography */
.post-page-content {
  max-width: var(--container-narrow);
  margin: 0 auto;
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--text-secondary);
}

.post-page-content h2 {
  font-size: var(--text-2xl);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--primary);
}

.post-page-content h3 {
  font-size: var(--text-xl);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.post-page-content h4,
.post-page-content h5,
.post-page-content h6 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.post-page-content p {
  margin-bottom: 1.5rem;
  line-height: 1.9;
}

.post-page-content a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: var(--primary-lighter);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}

.post-page-content a:hover {
  text-decoration-color: var(--primary);
}

/* Lists */
.post-page-content ul,
.post-page-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.post-page-content ul {
  list-style: none;
}

.post-page-content ul li {
  position: relative;
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
}

.post-page-content ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
  font-size: 1.5em;
  line-height: 1;
}

.post-page-content ol {
  list-style: decimal;
  list-style-position: outside;
}

.post-page-content ol li {
  margin-bottom: 0.75rem;
  padding-left: 0.5rem;
}

.post-page-content ol li::marker {
  color: var(--primary);
  font-weight: 700;
}

/* Blockquotes */
.post-page-content blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  background: var(--bg-secondary);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--text-secondary);
}

.post-page-content blockquote p:last-child {
  margin-bottom: 0;
}

/* Code */
.post-page-content code {
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 0.9em;
  background: var(--bg-secondary);
  color: var(--primary-hover);
  padding: 0.2em 0.5em;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.post-page-content pre {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--text-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow-x: auto;
  box-shadow: var(--shadow-md);
}

.post-page-content pre code {
  background: none;
  border: none;
  padding: 0;
  color: #E2E8F0;
  font-size: 0.9rem;
  line-height: 1.7;
}

/* Images */
.post-page-content img {
  margin: 2rem auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

/* Tables */
.post-page-content table {
  width: 100%;
  margin: 2rem 0;
  border-collapse: collapse;
  font-size: var(--text-sm);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.post-page-content table th,
.post-page-content table td {
  padding: 1rem;
  border: 1px solid var(--border-light);
  text-align: left;
}

.post-page-content table th {
  background: var(--primary-lighter);
  color: var(--primary-hover);
  font-weight: 700;
}

.post-page-content table tr:nth-child(even) {
  background: var(--bg-secondary);
}

.post-page-content table tr:hover {
  background: var(--primary-lighter);
}

/* Horizontal Rule */
.post-page-content hr {
  margin: 3rem 0;
  border: none;
  height: 2px;
  background: var(--border-light);
}

/* Post Footer */
.post-page-footer {
  max-width: var(--container-narrow);
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 2px solid var(--border-light);
}

.author-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.author-info h3 {
  font-size: var(--text-lg);
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.author-info p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  margin-bottom: 1rem;
}

.author-social {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.author-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--text-sm);
  transition: all 0.2s ease;
  font-weight: 500;
}

.author-social a:hover {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   Page Layout (About, etc.)
   ========================================================================== */
.page-container {
  padding-bottom: 4rem;
  min-height: 100vh;
  background: var(--bg-surface);
}

.page-header {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--border-light);
}

.page-title {
  font-size: var(--text-3xl);
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.page-subtitle {
  font-size: var(--text-lg);
  color: var(--text-muted);
}

.page-content {
  color: var(--text-secondary);
  line-height: 1.8;
}

/* About Page */
.about-hero-section {
  text-align: center;
  padding: 3rem 0 4rem;
  background: linear-gradient(135deg, #F0F9FF 0%, #FFFFFF 100%);
  border-radius: var(--radius-xl);
  margin-bottom: 3rem;
}

.about-hero-content {
  max-width: 700px;
  margin: 0 auto;
}

.about-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.about-title {
  font-size: var(--text-3xl);
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.about-description {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Skills Section */
.skills-section {
  margin: 4rem 0;
}

.section-subtitle {
  font-size: var(--text-2xl);
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.skills-grid-about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 2rem;
}

.skill-card-about {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.skill-card-about:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-lighter);
}

.skill-icon-about {
  width: 64px;
  height: 64px;
  background: var(--primary-lighter);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary);
  margin: 0 auto 1.5rem;
  transition: all 0.3s ease;
}

.skill-card-about:hover .skill-icon-about {
  background: var(--primary);
  color: #FFFFFF;
  transform: scale(1.1);
}

.skill-card-about h4 {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.skill-card-about p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0;
}

/* Certifications */
.certifications-section {
  margin: 4rem 0;
}

.cert-container {
  background: linear-gradient(135deg, var(--primary-lighter) 0%, #FEF3C7 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.cert-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.cert-badges {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.cert-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.cert-badge i {
  color: var(--primary);
  font-size: 1.25rem;
}

/* CTA Section */
.cta-section-about {
  margin: 4rem 0 2rem;
  text-align: center;
  padding: 3rem 2rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.cta-text {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* ==========================================================================
   Blog Listing Page
   ========================================================================== */
.blog-listing-page {
  padding-bottom: 6rem;
  min-height: 100vh;
  background: var(--bg-primary);
}

.blog-page-header {
  text-align: center;
  padding: 3rem 2rem 4rem;
  background: linear-gradient(135deg, #F0F9FF 0%, #FFFFFF 100%);
  border-radius: var(--radius-xl);
  margin-top: 2rem;
  margin-bottom: 3rem;
}

.blog-header-content {
  max-width: 700px;
  margin: 0 auto;
}

.blog-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--secondary);
  margin-bottom: 1.5rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.blog-page-title {
  font-size: var(--text-4xl);
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.blog-page-subtitle {
  font-size: var(--text-lg);
  color: var(--text-muted);
  line-height: 1.6;
}

/* Pagination */
.pagination-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 4rem;
  flex-wrap: wrap;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-weight: 500;
  transition: all 0.2s ease;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.pagination-btn:hover:not(.disabled) {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.pagination-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination-info {
  font-size: var(--text-base);
  color: var(--text-muted);
}

.pagination-info strong {
  color: var(--primary);
  font-weight: 700;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--text-primary);
  color: #94A3B8;
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 2.5rem);
  border-top: 1px solid var(--border-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  color: #FFFFFF;
  font-size: var(--text-xl);
  margin-bottom: 1rem;
}

.footer-brand p {
  color: #94A3B8;
  line-height: 1.7;
  max-width: 300px;
}

.footer-heading {
  color: #FFFFFF;
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #94A3B8;
  transition: all 0.2s ease;
}

.footer-links a:hover {
  color: var(--primary-light);
  padding-left: 0.5rem;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: clamp(1.5rem, 3vw, 2rem);
  text-align: center;
  color: #64748B;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 768px) {
  .hero-section {
    min-height: 80vh;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .btn {
    width: 100%;
  }

  .services-grid,
  .post-grid,
  .skills-grid-about {
    grid-template-columns: 1fr;
  }

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

  .footer-brand p {
    margin: 0 auto;
  }

  .nav-links {
    display: none;
  }

  .cert-badges {
    flex-direction: column;
  }

  .cert-badge {
    width: 100%;
    max-width: 320px;
  }

  .about-hero-section,
  .blog-page-header {
    padding: 2rem 1rem 3rem;
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .post-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (min-width: 1440px) {
  :root {
    --container-width: 1280px;
  }
}

@media (min-width: 1920px) {
  :root {
    --container-width: 1400px;
  }
}
