/* Modern Personal Website Styles */
:root {
  /* Modern Dark Blue Theme */
  --primary-color: #1e40af;
  --secondary-color: #1e3a8a;
  --accent-color: #3b82f6;
  
  /* Alternative: Modern Purple Theme */
  /* --primary-color: #7c3aed;
  --secondary-color: #5b21b6;
  --accent-color: #8b5cf6; */
  
  /* Alternative: Modern Green Theme */
  /* --primary-color: #059669;
  --secondary-color: #047857;
  --accent-color: #10b981; */
  
  /* Alternative: Modern Orange Theme */
  /* --primary-color: #ea580c;
  --secondary-color: #c2410c;
  --accent-color: #f97316; */
  
  /* Text Colors */
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-light: #9ca3af;
  
  /* Background Colors */
  --background-light: #f8fafc;
  --background-white: #ffffff;
  --background-card: #f1f5f9;
  
  /* Border and Shadow */
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  --gradient-secondary: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  --gradient-accent: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
}

/* Accessibility Focus Styles */
:focus {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-color);
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 10000;
  transition: top 0.3s;
  font-weight: 600;
}

.skip-link:focus {
  top: 6px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #000080;
    --secondary-color: #000060;
    --text-primary: #000000;
    --text-secondary: #333333;
    --background-light: #ffffff;
    --background-white: #ffffff;
    --border-color: #000000;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Screen reader only content */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--background-light);
  overflow-x: hidden;
}

/* Modern Header */
.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left {
  display: flex;
  align-items: center;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease, font-family 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.site-title:hover {
  color: var(--secondary-color);
}
.typing-title {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.typing-text {
  display: inline-block;
  white-space: nowrap;
  border-right: 3px solid var(--primary-color);
  animation: blink-caret 0.75s step-end infinite;
}

.typing-cursor {
  color: var(--primary-color);
  font-weight: bold;
  animation: blink 1s infinite;
  opacity: 0;
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: var(--primary-color); }
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Responsive adjustments for typing animation */
@media (max-width: 768px) {
  .typing-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .typing-title {
    font-size: 2rem;
  }
}

/* Typing Subtitle Styles */
.typing-subtitle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1rem;
  min-height: 2.5rem;
  text-align: center;
  width: 100%;
}

.typing-text-role {
  display: inline-block;
  white-space: nowrap;
  border-right: 2px solid var(--primary-color);
  animation: blink-caret 0.75s step-end infinite;
}

.typing-cursor-role {
  color: var(--primary-color);
  font-weight: bold;
  animation: blink 1s infinite;
  opacity: 0;
}

/* Responsive adjustments for typing subtitle */
@media (max-width: 768px) {
  .typing-subtitle {
    font-size: 1.5rem;
    min-height: 2rem;
  }
}

@media (max-width: 480px) {
  .typing-subtitle {
    font-size: 1.3rem;
    min-height: 1.8rem;
  }
}

.site-nav {
  display: flex;
  align-items: center;
}

.trigger {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.trigger li {
  margin: 0;
  padding: 0;
}

.color-scheme-toggle {
  margin-left: 1rem;
}

.color-scheme-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.color-scheme-btn:hover {
  background: var(--secondary-color);
  transform: scale(1.1);
}

.font-selector-toggle {
  margin-left: 0.5rem;
  position: relative;
  display: block;
}

.font-selector-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
}

.font-selector-btn:hover {
  background: var(--secondary-color);
  transform: scale(1.1);
}

.font-selector-btn.active {
  background: var(--secondary-color);
}

.font-options {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  padding: 1rem;
  min-width: 200px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.font-options.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.font-option {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.font-option:hover {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-color);
}

.font-option.active {
  background: var(--primary-color);
  color: white;
}

.font-option.playfair {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
}

.font-option.poppins {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

.font-option.montserrat {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}

.font-option.raleway {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
}

.font-option.source-sans {
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 600;
}

.font-option.inter {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.font-divider {
  border: none;
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
  margin: 0.5rem 0;
}

/* Creative & Cursive Fonts */
.font-option.dancing-script {
  font-family: 'Dancing Script', cursive;
  font-weight: 600;
  font-size: 1.1rem;
}

.font-option.great-vibes {
  font-family: 'Great Vibes', cursive;
  font-weight: 400;
  font-size: 1.2rem;
}

.font-option.caveat {
  font-family: 'Caveat', cursive;
  font-weight: 600;
  font-size: 1.1rem;
}

.font-option.pacifico {
  font-family: 'Pacifico', cursive;
  font-weight: 400;
  font-size: 1rem;
}

.font-option.allura {
  font-family: 'Allura', cursive;
  font-weight: 400;
  font-size: 1.3rem;
}

.font-option.satisfy {
  font-family: 'Satisfy', cursive;
  font-weight: 400;
  font-size: 1rem;
}

/* Sci-Fi Fonts */
.font-option.orbitron {
  font-family: 'Orbitron', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
}

.font-option.audiowide {
  font-family: 'Audiowide', cursive;
  font-weight: 400;
  font-size: 0.9rem;
}

.font-option.rajdhani {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 1rem;
}

.page-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 1rem;
  display: block;
  border-radius: 4px;
}

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

.page-link:hover::after {
  width: 100%;
}

.page-link:hover {
  color: var(--primary-color);
  background-color: rgba(37, 99, 235, 0.1);
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  color: white;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  animation: fadeInUp 1s ease 0.2s both;
}

.hero-description {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.8;
  animation: fadeInUp 1s ease 0.4s both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.cta-button {
  display: inline-block;
  background: white;
  color: var(--primary-color);
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  animation: fadeInUp 1s ease 0.6s both;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.cta-button-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.cta-button-secondary:hover {
  background: white;
  color: var(--primary-color);
}

/* Animated Background */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  animation: float 20s ease-in-out infinite;
}

/* Main Content */
main {
  margin-top: 0;
  padding-top: 80px;
}

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

.section {
  margin-bottom: 6rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-primary);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

/* About Section */
.about-section {
  background: var(--background-white);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 4rem;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

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

.about-text p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.about-image {
  text-align: center;
}

.about-image img {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}

/* Skills Section */
.skills-section {
  background: var(--background-white);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: var(--shadow-md);
}

.skills-carousel {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 2rem;
}

.skills-container {
  overflow: hidden;
  width: 100%;
  padding: 0 60px;
}

.skills-track {
  display: flex;
  transition: transform 0.5s ease;
  gap: 2rem;
}

.skill-card {
  flex: 0 0 300px;
  background: var(--background-card);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

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

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: var(--shadow-md);
}

.carousel-btn:hover {
  background: var(--secondary-color);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn:disabled {
  background: var(--text-light);
  cursor: not-allowed;
  transform: translateY(-50%) scale(1);
}

.carousel-btn-prev {
  left: 0;
}

.carousel-btn-next {
  right: 0;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border-color);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background: var(--primary-color);
  transform: scale(1.2);
}



.skill-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.skill-name {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.skill-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Projects Section */
.projects-section {
  background: var(--background-white);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: var(--shadow-md);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  background: var(--background-card);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

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

.project-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
  font-weight: bold;
}

.project-image:not([src]), 
.project-image[src=""], 
.project-image[src*="project1.jpg"],
.project-image[src*="project2.jpg"],
.project-image[src*="project3.jpg"],
.project-image[src*="project4.jpg"],
.project-image[src*="project5.jpg"],
.project-image[src*="project6.jpg"] {
  background: var(--gradient-primary);
  position: relative;
}

.project-image:not([src])::after, 
.project-image[src=""]::after, 
.project-image[src*="project1.jpg"]::after,
.project-image[src*="project2.jpg"]::after,
.project-image[src*="project3.jpg"]::after,
.project-image[src*="project4.jpg"]::after,
.project-image[src*="project5.jpg"]::after,
.project-image[src*="project6.jpg"]::after {
  content: '📊';
  font-size: 3rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.project-content {
  padding: 1.5rem;
}

.project-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

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

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

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

/* Enhanced Project Card Styles */
.project-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
  transition: all 0.3s ease;
}

.project-link:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.project-subtitle {
  font-size: 0.9rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.project-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
}

.project-category {
  background: var(--gradient-primary);
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
}

.project-date {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.project-technologies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 1rem;
}

.tech-tag {
  background: var(--background-light);
  color: var(--text-primary);
  padding: 0.2rem 0.5rem;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 500;
  border: 1px solid var(--border-color);
}

.project-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: auto;
}

.project-cta i {
  transition: transform 0.3s ease;
}

.project-link:hover .project-cta i {
  transform: translateX(3px);
}

.projects-cta {
  text-align: center;
  margin-top: 3rem;
}

/* Projects Carousel */
.projects-carousel {
  position: relative;
  padding: 2rem 0;
}

.projects-container {
  overflow: hidden;
  margin: 0 -1rem;
}

.projects-track {
  display: flex;
  transition: transform 0.5s ease;
  gap: 2rem;
  padding: 0 1rem;
}

.projects-track .project-card {
  min-width: 350px;
  flex-shrink: 0;
  margin: 0;
}

.projects-carousel .carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--background-white);
  border: 2px solid var(--border-color);
  color: var(--text-primary);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: var(--shadow-sm);
}

.projects-carousel .carousel-btn:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
}

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

.projects-carousel .carousel-btn-prev {
  left: -25px;
}

.projects-carousel .carousel-btn-next {
  right: -25px;
}

.projects-carousel .carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.projects-carousel .carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: var(--border-color);
  cursor: pointer;
  transition: all 0.3s ease;
}

.projects-carousel .carousel-dot.active {
  background: var(--primary-color);
  transform: scale(1.2);
}

/* Projects Page Styles */
.projects-header {
  background: var(--gradient-primary);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.projects-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.projects-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.project-filters {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
}

.filter-group, .search-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-label {
  font-weight: 600;
  font-size: 0.9rem;
}

.filter-select, .search-input {
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 0.9rem;
  backdrop-filter: blur(10px);
}

.filter-select option {
  background: var(--background-white);
  color: var(--text-primary);
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.projects-main {
  padding: 4rem 0;
}

.no-results {
  text-align: center;
  padding: 4rem 2rem;
}

.no-results-content {
  max-width: 400px;
  margin: 0 auto;
}

.no-results-content i {
  font-size: 3rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.no-results-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.no-results-content p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* Individual Project Page Styles */
.project-page {
  background: var(--background-light);
}

.project-header {
  background: var(--gradient-primary);
  color: white;
  padding: 4rem 0;
  position: relative;
}

.project-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
  opacity: 0.3;
}

.project-breadcrumb {
  margin-bottom: 2rem;
}

.breadcrumb-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.3s ease;
}

.breadcrumb-link:hover {
  opacity: 0.8;
  color: white;
}

.project-header-content {
  position: relative;
  z-index: 1;
}

.project-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.project-category {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.project-date {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.project-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.project-subtitle {
  font-size: 1.3rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.project-description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 800px;
}

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

.project-tag {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

.project-content-section {
  padding: 4rem 0;
}

.project-content-wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.project-content {
  background: var(--background-white);
  border-radius: 15px;
  padding: 3rem;
  box-shadow: var(--shadow-md);
}

.project-content h1,
.project-content h2,
.project-content h3,
.project-content h4 {
  color: var(--text-primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.project-content h1 { font-size: 2.2rem; }
.project-content h2 { font-size: 1.8rem; }
.project-content h3 { font-size: 1.5rem; }
.project-content h4 { font-size: 1.3rem; }

.project-content h1:first-child,
.project-content h2:first-child,
.project-content h3:first-child,
.project-content h4:first-child {
  margin-top: 0;
}

.project-content p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.project-content ul,
.project-content ol {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.project-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.project-content blockquote {
  border-left: 4px solid var(--primary-color);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-secondary);
  background: var(--background-light);
  padding: 1.5rem;
  border-radius: 0 8px 8px 0;
}

.project-content code {
  background: var(--background-light);
  color: var(--primary-color);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.project-content pre {
  background: var(--background-light);
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--border-color);
}

.project-content pre code {
  background: none;
  padding: 0;
  color: var(--text-primary);
}

.project-sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-widget {
  background: var(--background-white);
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.sidebar-widget h3 {
  color: var(--text-primary);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
}

.project-info-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.info-label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.info-value {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.tech-tag {
  background: var(--background-light);
  color: var(--text-primary);
  padding: 0.2rem 0.5rem;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 500;
  border: 1px solid var(--border-color);
}

.project-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.project-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  background: var(--background-light);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.project-link:hover {
  background: var(--primary-color);
  color: white;
  transform: translateX(5px);
}

.project-link i {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.related-projects-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.related-project-link {
  display: block;
  padding: 1rem;
  background: var(--background-light);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.related-project-link:hover {
  background: var(--primary-color);
  color: white;
  transform: translateX(5px);
}

.related-project-link h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: inherit;
}

.related-project-link p {
  font-size: 0.8rem;
  color: inherit;
  opacity: 0.8;
  margin: 0;
}

/* Resume Section */
.resume-section {
  background: var(--background-white);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: var(--shadow-md);
}

.resume-section h2 {
  color: var(--text-primary);
  margin: 2.5rem 0 1.5rem 0;
  font-size: 2rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 0.5rem;
}

.resume-section h2:first-child {
  margin-top: 0;
}

.resume-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.resume-section h3 {
  color: var(--primary-color);
  margin: 1.5rem 0 0.5rem 0;
  font-size: 1.3rem;
  font-weight: 600;
}

.resume-section p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.resume-section ul {
  list-style: none;
  padding-left: 0;
}

.resume-section li {
  margin-bottom: 1rem;
  padding-left: 2rem;
  position: relative;
  line-height: 1.6;
}

.resume-section li::before {
  content: '▸';
  color: var(--primary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
  font-size: 1.2rem;
}

.resume-section li strong {
  color: var(--text-primary);
  font-weight: 600;
}

.resume-section li i {
  color: var(--primary-color);
  margin-right: 0.5rem;
  font-style: normal;
}



/* Footer */
.site-footer {
  background: var(--text-primary);
  color: white;
  padding: 3rem 2rem 1rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-section {
  display: flex;
  flex-direction: column;
}

.footer-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

.footer-description {
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.footer-subtitle {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: white;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-link {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.3s ease;
  padding: 0.25rem 0;
}

.footer-link:hover {
  color: var(--accent-color);
}

.footer-contact-icons {
  display: flex;
  gap: 3rem;
  justify-content: flex-start;
  align-items: center;
  margin-top: 1rem;
}

.footer-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #cbd5e1;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 2rem;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.footer-icon-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.footer-icon-link:hover::before {
  left: 100%;
}

.footer-icon-link:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  transform: translateY(-3px) scale(1.1);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.footer-icon-link i {
  font-size: 2.2rem;
}

.footer-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gradient-primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 1rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.footer-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: white;
}

.footer-cta-button i {
  font-size: 1rem;
}

.footer-bottom {
  border-top: 1px solid #475569;
  padding-top: 1.5rem;
  text-align: center;
}

.footer-bottom p {
  color: #94a3b8;
  margin: 0;
}

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

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--primary-color);
  margin: 3px 0;
  transition: 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Drawer Overlay */
.mobile-drawer-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-drawer-overlay.active {
  display: block;
  opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }
  
  .site-nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: var(--background-white);
    transition: 0.3s ease;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    overflow-y: auto;
  }
  
  .site-nav.active {
    right: 0;
  }
  
  .trigger {
    flex-direction: column;
    padding: 2rem 0;
    gap: 0;
    margin-top: 80px;
  }
  
  .trigger li {
    width: 100%;
    border-bottom: 1px solid var(--border-color);
  }
  
  .trigger li:last-child {
    border-bottom: none;
  }
  
  .page-link {
    display: block;
    padding: 1.5rem 2rem;
    font-size: 1.1rem;
    border-radius: 0;
    transition: all 0.3s ease;
  }
  
  .page-link:hover {
    background-color: var(--background-light);
    color: var(--primary-color);
  }
  
    .color-scheme-toggle {
    margin: 1rem 2rem;
    text-align: center;
  }

  .color-scheme-btn {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .font-selector-toggle {
    margin: 1rem 2rem;
    text-align: center;
  }

  .font-selector-btn {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .font-options {
    right: -50px;
    min-width: 180px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-buttons .cta-button {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .about-image img {
    width: 250px;
    height: 250px;
  }
  
  .container {
    padding: 2rem 1rem;
  }
  
  .section {
    margin-bottom: 4rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .skills-container {
    padding: 0 50px;
  }
  
  .skill-card {
    flex: 0 0 280px;
  }
  
  .carousel-btn {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }
  
  .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .footer-contact-icons {
    justify-content: center;
    gap: 2.5rem;
  }
  
    .footer-icon-link {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
  }

  .footer-icon-link i {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .header-container {
    padding: 1rem;
  }
  
  .site-nav {
    width: 260px;
    right: -260px;
  }
  
  .trigger {
    gap: 1rem;
  }
  
  .page-link {
    padding: 1.2rem 1.5rem;
    font-size: 1rem;
  }
  
  .about-section,
  .skills-section,
  .projects-section,
  .contact-section {
    padding: 2rem 1.5rem;
  }
}

/* Blog Styles */
.blog-header {
  background: var(--gradient-primary);
  color: white;
  padding: 4rem 0;
  text-align: center;
  margin-bottom: 3rem;
}

.blog-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.blog-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

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

/* Featured Posts */
.featured-posts {
  margin-bottom: 4rem;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.featured-post {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.featured-post:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.post-image {
  height: 200px;
  overflow: hidden;
  background: var(--gradient-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
}

.post-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--gradient-secondary);
  color: white;
  font-size: 3rem;
}

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

.post-content {
  padding: 1.5rem;
}

.post-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  flex-wrap: wrap;
  justify-content: center;
}

.post-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.post-meta-item i {
  font-size: 0.8rem;
  opacity: 0.8;
}

.post-date {
  color: var(--text-secondary);
}

.post-category {
  background: var(--primary-color);
  color: white;
  padding: 0.2rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
}

.post-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.post-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

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

.read-more {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.read-more:hover {
  color: var(--secondary-color);
  transform: translateX(5px);
}

/* All Posts */
.all-posts {
  margin-bottom: 4rem;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.post-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

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

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

.post-tags {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.post-tag {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-color);
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

.post-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Categories */
.blog-categories {
  margin-bottom: 4rem;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.category-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--text-primary);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  color: var(--primary-color);
}

.category-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.category-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: inherit;
}

.category-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

/* Blog Responsive */
@media (max-width: 768px) {
  .blog-title {
    font-size: 2.5rem;
  }
  
  .featured-grid {
    grid-template-columns: 1fr;
  }
  
  .posts-grid {
    grid-template-columns: 1fr;
  }
  
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .blog-title {
    font-size: 2rem;
  }
  
  .categories-grid {
    grid-template-columns: 1fr;
  }
}

/* Blog Post Styles */
.blog-post {
  padding-top: 80px;
}

.post-header-section {
  background: var(--gradient-primary);
  color: white;
  padding: 4rem 0;
  margin-bottom: 3rem;
}

.post-header-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.post-header-content .post-meta {
  margin-bottom: 1.5rem;
}

.post-header-content .post-meta-item {
  color: rgba(255, 255, 255, 0.9);
}

.post-card .post-meta-item,
.featured-post .post-meta-item {
  color: var(--text-secondary);
}

.post-header-content .post-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.post-header-content .post-excerpt {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.post-header-content .post-tags {
  justify-content: center;
}

.post-content-section {
  margin-bottom: 4rem;
}

/* Post Metadata Section */
.post-metadata {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.post-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.post-metadata .post-meta-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.post-metadata .post-meta-item i {
  color: var(--primary-color);
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

.post-metadata .post-date {
  color: var(--text-secondary);
}

.post-metadata .post-category {
  background: var(--primary-color);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.post-metadata .reading-time,
.post-metadata .word-count {
  color: var(--text-secondary);
  font-weight: 500;
}

.post-tags-section {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 1.5rem;
}

.post-metadata .post-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.post-metadata .post-tag {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-color);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.post-metadata .post-tag:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-1px);
}

.post-content-wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.post-content {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  line-height: 1.8;
  font-size: 1.1rem;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  color: var(--text-primary);
  margin: 2rem 0 1rem 0;
  line-height: 1.3;
}

.post-content h1 { font-size: 2rem; }
.post-content h2 { font-size: 1.8rem; }
.post-content h3 { font-size: 1.5rem; }
.post-content h4 { font-size: 1.3rem; }

.post-content p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

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

.post-content li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.post-content blockquote {
  border-left: 4px solid var(--primary-color);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-secondary);
  background: rgba(59, 130, 246, 0.05);
  padding: 1.5rem;
  border-radius: 0 8px 8px 0;
}

.post-content code {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-color);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9rem;
}

.post-content pre {
  background: #1f2937;
  color: #f9fafb;
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 2rem 0;
}

.post-content pre code {
  background: none;
  color: inherit;
  padding: 0;
}

/* Sidebar */
.post-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-widget {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.sidebar-widget h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.5rem;
}

.author-info {
  text-align: center;
}

.author-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 1rem;
  object-fit: cover;
}

.author-info h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.author-info p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.categories-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.category-link {
  color: var(--primary-color);
  text-decoration: none;
  padding: 0.5rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.category-link:hover {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-color);
}

.recent-posts {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.recent-post-link {
  text-decoration: none;
  color: var(--text-primary);
  padding: 0.5rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.recent-post-link:hover {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-color);
}

.recent-post-link h4 {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.recent-post-date {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Post Navigation */
.post-navigation {
  background: white;
  padding: 2rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--primary-color);
}

.nav-link.next {
  text-align: right;
  flex-direction: row-reverse;
}

.nav-arrow {
  font-size: 1.5rem;
  color: var(--primary-color);
  font-weight: bold;
}

.nav-content {
  flex: 1;
}

.nav-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.nav-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

/* Blog Post Responsive */
@media (max-width: 768px) {
  .post-content-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .post-header-content .post-title {
    font-size: 1.8rem;
  }
  
  .post-meta-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .post-metadata {
    padding: 1.5rem;
  }
  
  .nav-links {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .nav-link {
    padding: 1rem;
  }
  
  .nav-link.next {
    text-align: left;
    flex-direction: row;
  }
  
  /* Project page responsive */
  .project-content-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .project-sidebar {
    position: static;
  }
  
  .project-title {
    font-size: 2.5rem;
  }
  
  .projects-title {
    font-size: 2.5rem;
  }
  
  .project-filters {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-group, .search-group {
    width: 100%;
  }
  
  /* Projects carousel responsive */
  .projects-carousel .carousel-btn {
    width: 40px;
    height: 40px;
  }
  
  .projects-carousel .carousel-btn-prev {
    left: -20px;
  }
  
  .projects-carousel .carousel-btn-next {
    right: -20px;
  }
  
  .projects-track .project-card {
    min-width: 300px;
  }
}

/* Performance Optimizations */
* {
  box-sizing: border-box;
}

/* Optimize images */
img {
  max-width: 100%;
  height: auto;
}

/* Reduce layout shifts */
.hero-section,
.site-header,
.project-card {
  contain: layout style paint;
}

/* Touch-friendly buttons for mobile */
.cta-button,
.project-link,
.page-link {
  min-height: 44px;
  min-width: 44px;
  touch-action: manipulation;
}

/* Font display optimization */
@font-face {
  font-family: 'Inter';
  font-display: swap;
}

@font-face {
  font-family: 'Playfair Display';
  font-display: swap;
}
