/* Claude AI-inspired Cream Theme with Sophisticated Typography */
@import url("https://fonts.googleapis.com/css2?family=Vollkorn:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap");

/* CSS Variables for Consistent Theming */
:root {
  --cream-50: #fefcf9;
  --cream-100: #fdf9f0;
  --cream-200: #f9f1e6;
  --cream-300: #f5e9d3;
  --cream-400: #e8d5ae;
  --cream-500: #c4a574;
  --cream-600: #a68b5b;
  --cream-700: #8b7355;
  --cream-800: #6b5b47;
  --cream-900: #4a4037;

  --text-primary: #2d2a26;
  --text-secondary: #6b645c;
  --text-tertiary: #9a9386;
  --text-accent: #8b7355;

  --border-light: #e8e3dc;
  --border-medium: #d1c7b8;
  --shadow-soft: 0 1px 3px rgba(45, 42, 38, 0.05);
  --shadow-medium: 0 4px 12px rgba(45, 42, 38, 0.08);
  --shadow-strong: 0 8px 25px rgba(45, 42, 38, 0.12);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-snap-type: y mandatory;
}

body {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;
  background: var(--cream-50);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Section Navigation */
.section-nav {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 1000;
}

.nav-indicator {
  display: flex;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 0.5rem;
  box-shadow: var(--shadow-medium);
}

.nav-btn {
  padding: 0.5rem 1rem;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.875rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-btn:hover {
  background: var(--cream-100);
  color: var(--text-primary);
}

.nav-btn.active {
  background: var(--cream-500);
  color: white;
}

/* Main Layout */
.main-container {
  min-height: 100vh;
  background: var(--cream-50);
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  background: var(--cream-50);
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.hero-container {
  display: flex;
  max-width: 800px;
  width: 100%;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}

/* Main Content - 30% width */
.main-content {
  flex: 0 0 40%;
  text-align: center;
}

.profile-avatar-wrapper {
  margin-bottom: 1rem;
}

.profile-avatar {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--cream-300);
  box-shadow: var(--shadow-medium);
  transition: all 0.3s ease;
}

.profile-avatar:hover {
  border-color: var(--cream-500);
  transform: scale(1.02);
  box-shadow: var(--shadow-strong);
}

.profile-name {
  font-family: "Vollkorn", serif;
  font-size: 3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.profile-description {
  font-size: 1rem;
  color: var(--text-primary);
  line-height: 1.5;
}

/* Widgets Sidebar */
.widgets-sidebar {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Social Grid - 2x2 layout */
.social-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.social-widget,
.widget-link-main {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.25rem;
}

.social-widget:hover,
.widget-link-main:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  color: var(--text-primary);
  background: white;
}

.social-widget i {
  font-size: 1.25rem;
  color: var(--text-accent);
}

.social-widget .widget-text {
  font-size: 1rem;
  font-weight: 600;
}

.social-widget .widget-subtitle {
  font-size: 0.7rem;
  color: var(--text-primary);
}

/* Bottom Widgets Row */
.bottom-widgets {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bottom-widgets-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.75rem;
}

/* Widget styles for bottom row */
.widget-link-main {
  gap: 0.25rem;
}

.widget-link-main:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  color: var(--text-primary);
}

.widget-link-main i {
  font-size: 1.25rem;
  color: var(--text-accent);
  margin-bottom: 0.25rem;
}

.widget-link-main .widget-text {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.1rem;
}

.widget-link-main .widget-subtitle {
  font-size: 0.7rem;
  color: var(--text-primary);
}

.currently-working-widget .widget-bio {
  font-size: 0.8rem;
  color: var(--text-primary);
  margin-top: 0.5rem;
}

/* Full-width widgets */
.currently-working-widget {
  grid-column: 1 / -1;
  background: linear-gradient(
    135deg,
    var(--cream-100) 0%,
    var(--cream-200) 100%
  );
  border: 1px solid var(--cream-300);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.currently-working-widget:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.work-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.work-header i {
  font-size: 1rem;
  color: var(--text-accent);
}

.work-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.work-content {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  flex: 1;
}

.work-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: flex-start;
}

.company-logo {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.company {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.role {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-accent);
  line-height: 1.2;
}

.work-description {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  margin-bottom: 0;
  line-height: 1.4;
}

.widget-status {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.status-text {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.status-location {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Social Links */
.social-links {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: var(--cream-100);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.social-link:hover {
  background: white;
  border-color: var(--cream-500);
  transform: translateY(-1px);
  box-shadow: var(--shadow-medium);
  color: var(--text-primary);
}

.resume-link:hover {
  background: var(--cream-500);
  color: white;
  border-color: var(--cream-500);
}

/* Content Section */
.content-section {
  padding: 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  height: 100vh;
  overflow-y: auto;
}

/* Projects Section in Hero */
.projects-section-hero {
  margin-top: 1rem;
  flex: 1;
}

.projects-section-hero .section-title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  text-align: left;
}

.projects-carousel-wrapper-hero {
  position: relative;
  overflow: hidden;
  padding: 0 40px;
}

.projects-carousel-hero {
  display: flex;
  gap: 1rem;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card-hero {
  flex: 0 0 260px;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  height: 180px;
}

.project-card-hero:hover {
  border-color: var(--cream-400);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.carousel-controls-hero {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.carousel-controls-hero .carousel-btn {
  width: 36px;
  height: 36px;
  font-size: 0.875rem;
}

/* Info Cards */
.info-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.info-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-soft);
}

.info-card:hover {
  border-color: var(--cream-400);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.info-card-icon {
  width: 48px;
  height: 48px;
  background: var(--cream-100);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--cream-600);
  font-size: 1.25rem;
}

.info-card-icon.research {
  background: #e8f5e8;
  color: #2d5a2d;
}

.info-card-title {
  font-family: "Vollkorn", serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.info-card-text {
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.info-card-subtitle {
  color: var(--text-tertiary);
  font-size: 0.875rem;
}

/* Projects Section */
.projects-section {
  flex: 1;
}

/* Full Page Projects Section */
.projects-section-full {
  min-height: 100vh;
  background: var(--cream-50);
  display: flex;
  align-items: center;
  padding: 5rem 0;
}

.projects-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.projects-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

.projects-carousel-wrapper {
  position: relative;
  overflow: hidden;
  padding: 0 60px;
}

.projects-carousel {
  display: flex;
  gap: 2rem;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card-large {
  flex: 0 0 400px;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
}

.project-card-large:hover {
  border-color: var(--cream-400);
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.project-card-inner {
  padding: 2rem;
  height: 100%;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
}

.carousel-btn {
  width: 48px;
  height: 48px;
  border: 1px solid var(--border-light);
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1rem;
}

.carousel-btn:hover:not(:disabled) {
  background: var(--cream-500);
  color: white;
  border-color: var(--cream-500);
  transform: scale(1.05);
}

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

/* Blog Section - Full Page */
.blog-section-full {
  min-height: 100vh;
  background: var(--cream-100);
  padding: 5rem 0;
  scroll-snap-align: start;
}

.blog-grid-full {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.blog-card-full {
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-medium), 15px 15px 30px rgba(0, 0, 0, 0.3);
  position: relative;
}

.blog-card-full:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-strong), 20px 20px 40px rgba(0, 0, 0, 0.4);
}

.blog-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.blog-card-bg {
  height: 300px;
  background: var(--cream-50);
  border: 1px solid var(--cream-200);
  border-radius: 12px;
  position: relative;
  transition: all 0.2s ease;
}

.blog-card-bg:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(45, 42, 38, 0.08);
}

/* Emoji in top right */
.blog-card-emoji::after {
  content: attr(data-emoji);
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 4rem;
  z-index: 3;
  opacity: 0.8;
}

.blog-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  color: var(--text-primary);
  z-index: 2;
}

.blog-card-full .blog-card-tags {
  margin-bottom: 1rem;
}

.blog-card-full .blog-tag {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
}

.blog-card-full .blog-card-title {
  color: white;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  line-height: 1.2;
}

.blog-card-full .blog-card-excerpt {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.5;
  font-size: 1rem;
}

.blog-card-full .blog-date {
  color: #2d2a26 !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  background: var(--cream-200) !important;
  padding: 0.25rem 0.7rem !important;
  border-radius: 8px !important;
  border: 1px solid var(--cream-300) !important;
}

/* Single Post Styles */
.single-post {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--cream-50);
  min-height: 100vh;
}

.post-header {
  margin-bottom: 3rem;
}

.post-header-content {
  max-width: 100%;
}

.post-nav {
  margin-bottom: 2rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-accent);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  background: var(--cream-100);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.back-link:hover {
  background: var(--cream-200);
  transform: translateX(-2px);
}

.post-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.post-date,
.reading-time {
  font-weight: 500;
}

.post-title {
  font-family: "Vollkorn", serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.post-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.post-tag {
  background: var(--cream-500);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
}

.post-featured-image {
  margin-bottom: 2rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
}

.post-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.post-content {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 3rem;
  box-shadow: var(--shadow-soft);
  margin-bottom: 3rem;
}

.post-body {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-primary);
}

.post-body h1,
.post-body h2,
.post-body h3,
.post-body h4,
.post-body h5,
.post-body h6 {
  font-family: "Vollkorn", serif;
  color: var(--text-primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.post-body h1 {
  font-size: 2.25rem;
}
.post-body h2 {
  font-size: 1.875rem;
}
.post-body h3 {
  font-size: 1.5rem;
}
.post-body h4 {
  font-size: 1.25rem;
}

.post-body p {
  margin-bottom: 1.5rem;
}

.post-body blockquote {
  border-left: 4px solid var(--cream-500);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-secondary);
  background: var(--cream-100);
  padding: 1.5rem;
  border-radius: 8px;
}

.post-body code {
  background: var(--cream-100);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--text-primary);
}

.post-body pre {
  background: var(--cream-200);
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.post-body pre code {
  background: none;
  padding: 0;
}

.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
  box-shadow: var(--shadow-soft);
}

.post-footer {
  border-top: 1px solid var(--border-light);
  padding-top: 2rem;
}

.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.nav-link {
  display: block;
  padding: 1.5rem;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-soft);
}

.nav-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  border-color: var(--cream-400);
}

.nav-prev {
  text-align: left;
}

.nav-next {
  text-align: right;
}

.nav-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.nav-title {
  font-family: "Vollkorn", serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.section-title {
  font-family: "Vollkorn", serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.project-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-soft);
}

.project-card:hover {
  border-color: var(--cream-400);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.project-icon {
  width: 36px;
  height: 36px;
  background: var(--cream-100);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.project-icon.text-primary {
  background: #e3f2fd;
  color: #1565c0;
}
.project-icon.text-success {
  background: #e8f5e8;
  color: #2d5a2d;
}
.project-icon.text-info {
  background: #e0f2f1;
  color: #00695c;
}
.project-icon.text-danger {
  background: #ffebee;
  color: #c62828;
}

.project-link {
  width: 32px;
  height: 32px;
  background: var(--cream-100);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 0.75rem;
}

.project-link:hover {
  background: var(--cream-500);
  color: white;
  border-color: var(--cream-500);
}

.project-title {
  font-family: "Vollkorn", serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.project-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.project-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.project-tag {
  background: var(--cream-100);
  color: var(--text-secondary);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}

.project-award {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-tertiary);
}

.project-award.text-warning {
  color: #f57c00;
}
.project-award.text-success {
  color: #2d5a2d;
}
.project-award.text-primary {
  color: #1565c0;
}

/* Legacy Blog Section - Keep for compatibility */
.blog-section {
  background: var(--cream-100);
  padding: 5rem 0;
}

.blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.blog-header {
  text-align: center;
  margin-bottom: 3rem;
}

.blog-title {
  font-family: "Vollkorn", serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.blog-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

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

.blog-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-soft);
}

.blog-card:hover {
  border-color: var(--cream-400);
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.blog-card-content {
  padding: 2rem;
}

.blog-card-title {
  font-family: "Vollkorn", serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.blog-card-excerpt {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.blog-card-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.blog-tag {
  background: var(--cream-500);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}

.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.blog-date {
  color: var(--text-tertiary);
  font-size: 0.875rem;
}

.blog-read-more {
  color: var(--text-accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.blog-read-more:hover {
  color: var(--cream-700);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
  }

  .profile-section {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    min-height: auto;
    padding: 3rem 2rem;
  }

  .content-section {
    padding: 3rem 2rem;
  }

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

  /* Hero projects carousel adjustments */
  .projects-carousel-wrapper-hero {
    padding: 0 20px;
  }

  .project-card-hero {
    flex: 0 0 250px;
  }

  /* Full page sections adjustments */
  .projects-carousel-wrapper {
    padding: 0 20px;
  }

  .project-card-large {
    flex: 0 0 320px;
  }

  .projects-section-full,
  .blog-section-full {
    padding: 3rem 0;
  }
}

@media (max-width: 768px) {
  .profile-name {
    font-size: 2rem;
  }

  .profile-avatar {
    width: 180px;
    height: 180px;
  }

  .info-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .info-card {
    padding: 1.5rem;
  }

  .project-card {
    padding: 1.25rem;
  }

  .blog-container {
    padding: 0 1rem;
  }

  .blog-title {
    font-size: 2rem;
  }

  .social-links {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .social-link {
    width: 100%;
    max-width: 180px;
    justify-content: center;
  }

  /* Navigation adjustments */
  .section-nav {
    top: 1rem;
    right: 1rem;
  }

  .nav-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }

  /* Hero projects carousel mobile adjustments */
  .projects-carousel-wrapper-hero {
    padding: 0 10px;
  }

  .project-card-hero {
    flex: 0 0 220px;
    padding: 1.25rem;
  }

  .projects-section-hero .section-title {
    font-size: 1.25rem;
  }

  .carousel-controls-hero .carousel-btn {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
  }

  /* Mobile adjustments for new sections */
  .projects-carousel-wrapper {
    padding: 0 10px;
  }

  .project-card-large {
    flex: 0 0 280px;
  }

  .project-card-inner {
    padding: 1.5rem;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 0.875rem;
  }

  .blog-grid-full {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1rem;
  }

  .blog-card-bg {
    height: 400px;
  }

  .blog-card-overlay {
    padding: 2rem;
  }

  .blog-card-full .blog-card-title {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  /* Single post mobile styles */
  .single-post {
    padding: 1rem;
  }

  .post-title {
    font-size: 2rem;
  }

  .post-content {
    padding: 2rem;
  }

  .post-navigation {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .nav-link {
    padding: 1rem;
  }

  .post-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
@media (max-width: 480px) {
  .projects-carousel {
    gap: 1rem;
  }

  .projects-carousel-hero {
    gap: 0.75rem;
  }

  .project-card-large {
    flex: 0 0 260px;
  }

  .project-card-hero {
    flex: 0 0 200px;
    padding: 1rem;
  }

  .projects-container,
  .blog-container {
    padding: 0 1rem;
  }

  .blog-card-bg {
    height: 350px;
  }

  .blog-card-overlay {
    padding: 1.5rem;
  }

  .blog-card-full .blog-card-title {
    font-size: 1.25rem;
  }
}

/* Custom blog card gradient for posts without images */
.blog-card-bg {
  background: var(--cream-100) !important;
  border: 2px solid var(--cream-200) !important;
  border-radius: 16px !important;
  position: relative;
  overflow: hidden;
}

/* Add some hover effects */
.blog-card-full:hover .blog-card-bg {
  transform: translateY(-4px);
  transition: transform 0.3s ease;
  border-color: var(--cream-300) !important;
  box-shadow: 0 8px 25px rgba(45, 42, 38, 0.1) !important;
}

/* Clean minimal blog card styles */
.blog-card-title-large {
  font-family: "Vollkorn", serif;
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.blog-card-summary {
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--text-secondary);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 0;
}

.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  gap: 1rem;
}

.blog-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.blog-tag {
  font-family: "Plus Jakarta Sans", sans-serif;
  background: var(--cream-200);
  color: var(--text-accent);
  padding: 0.25rem 0.7rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--cream-300);
}

.blog-date {
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--cream-200);
  padding: 0.25rem 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--cream-300);
}

/* Remove old emoji styles */

/* Minimal overlay styling */
.blog-card-overlay {
  background: none !important;
  padding: 2rem !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  color: inherit !important;
}

.blog-card-content {
  padding: 0 !important;
}

/* Make emoji more prominent on hover */
.blog-card-full:hover .blog-card-emoji::before {
  opacity: 0.8;
  transform: scale(1.1);
  transition: all 0.3s ease;
}

/* Enhanced mobile responsiveness */
@media (max-width: 768px) {
  .blog-grid-full {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    padding: 0 1rem !important;
  }

  .blog-card-full {
    min-height: 300px !important;
  }

  .blog-card-title-large {
    font-size: 1.75rem !important;
    line-height: 1.3 !important;
  }

  .blog-card-summary {
    font-size: 1rem !important;
  }

  .blog-card-emoji::after {
    font-size: 3rem !important;
    top: 1.5rem !important;
    right: 1.5rem !important;
  }

  .blog-card-overlay {
    padding: 1.5rem !important;
  }

  .blog-header {
    padding: 2rem 1rem !important;
    text-align: center !important;
  }

  /* Hero section mobile improvements */
  .hero-container {
    flex-direction: column !important;
    gap: 1.5rem !important;
    padding: 1.5rem !important;
    min-height: 100vh !important;
    justify-content: center !important;
  }

  .widgets-sidebar {
    width: 100% !important;
    order: 2 !important;
    max-width: 400px !important;
    margin: 0 auto !important;
  }

  .main-content {
    order: 1 !important;
    text-align: center !important;
    padding: 1rem 0 !important;
    flex-shrink: 0 !important;
  }

  .profile-name {
    font-size: 2.5rem !important;
    margin-bottom: 1rem !important;
  }
  
  .profile-description {
    font-size: 1.1rem !important;
    line-height: 1.5 !important;
    max-width: 380px !important;
    margin: 0 auto 1.5rem !important;
  }
  
  .profile-avatar {
    width: 160px !important;
    height: 160px !important;
    margin-bottom: 1rem !important;
  }

  .social-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
    margin-bottom: 1rem !important;
  }
  
  .social-widget {
    padding: 1rem !important;
    font-size: 0.9rem !important;
    border-radius: 12px !important;
    min-height: auto !important;
  }
  
  .social-widget i {
    font-size: 1.3rem !important;
    margin-bottom: 0.4rem !important;
  }
  
  .bottom-widgets-row {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.6rem !important;
  }
  
  .widget-link-main {
    padding: 0.8rem 0.4rem !important;
    font-size: 0.85rem !important;
    border-radius: 10px !important;
  }
  
  .widget-link-main i {
    font-size: 1.1rem !important;
  }
  
  .currently-working-widget {
    padding: 1rem !important;
    margin-top: 0.75rem !important;
  }
  
  .work-main {
    gap: 0.6rem !important;
  }
  
  .company-logo {
    width: 36px !important;
    height: 36px !important;
  }
  
  .company {
    font-size: 0.95rem !important;
  }
  
  .role {
    font-size: 0.8rem !important;
  }
  
  .work-description {
    font-size: 0.8rem !important;
    margin-top: 0.3rem !important;
  }
  
  /* Make hero section fit screen height */
  .hero-section {
    min-height: 100vh !important;
    max-height: 100vh !important;
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  .blog-card-title-large {
    font-size: 1.6rem !important;
  }

  .blog-card-summary {
    font-size: 1rem !important;
  }

  .blog-card-emoji::after {
    font-size: 3rem !important;
    top: 1rem !important;
    right: 1rem !important;
  }

  .profile-name {
    font-size: 2.2rem !important;
    line-height: 1.2 !important;
    margin-bottom: 0.75rem !important;
  }

  .profile-description {
    font-size: 1rem !important;
    padding: 0 !important;
    max-width: 340px !important;
    margin: 0 auto 1.25rem !important;
  }
  
  .profile-avatar {
    width: 140px !important;
    height: 140px !important;
    margin-bottom: 0.75rem !important;
  }

  .social-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.6rem !important;
    max-width: 320px !important;
    margin: 0 auto 1rem !important;
  }
  
  .social-widget {
    padding: 0.8rem !important;
    font-size: 0.8rem !important;
    border-radius: 10px !important;
  }
  
  .social-widget i {
    font-size: 1.1rem !important;
    margin-bottom: 0.3rem !important;
  }
  
  .bottom-widgets-row {
    gap: 0.5rem !important;
  }
  
  .widget-link-main {
    padding: 0.7rem 0.3rem !important;
    font-size: 0.75rem !important;
  }
  
  .widget-link-main i {
    font-size: 1rem !important;
  }
  
  .currently-working-widget {
    padding: 0.8rem !important;
  }
  
  .company {
    font-size: 0.85rem !important;
  }
  
  .role {
    font-size: 0.75rem !important;
  }
  
  .work-description {
    font-size: 0.75rem !important;
  }
  
  .hero-container {
    gap: 1.25rem !important;
    padding: 1rem !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
  }

  .blog-card-footer {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.5rem !important;
  }
  
  .blog-tag {
    font-size: 0.75rem !important;
    padding: 0.25rem 0.6rem !important;
  }
  
  /* Ensure blog section also fits screen height */
  .blog-section-full {
    min-height: 100vh !important;
    padding: 2rem 0 !important;
  }
  
  .blog-grid-full {
    padding: 0 1rem !important;
  }
}

/* Ensure date is always visible with black text */
.blog-date {
  font-family: "Plus Jakarta Sans", sans-serif !important;
  color: #2d2a26 !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  background: var(--cream-200) !important;
  padding: 0.25rem 0.7rem !important;
  border-radius: 8px !important;
  border: 1px solid var(--cream-300) !important;
  white-space: nowrap !important;
}

/* Additional mobile polish */
@media (max-width: 768px) {
  .section-nav {
    top: 1rem !important;
    right: 1rem !important;
  }
  
  .nav-btn {
    padding: 0.5rem 0.9rem !important;
    font-size: 0.8rem !important;
  }
}

@media (max-width: 480px) {
  .section-nav {
    top: 0.5rem !important;
    right: 0.5rem !important;
  }
  
  .nav-btn {
    padding: 0.4rem 0.7rem !important;
    font-size: 0.75rem !important;
  }
  
  .blog-date {
    font-size: 0.75rem !important;
    padding: 0.2rem 0.5rem !important;
  }
}
