/* Social icon row and Gemini button row for responsive layout */
.icon-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.gemini-btn-row {
    display: flex;
    align-items: center;
}
@media (max-width: 600px) {
    .social-links {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    .icon-row {
        flex-direction: row;
        gap: 0.5rem;
        width: 100%;
        justify-content: center;
    }
    .gemini-btn-row {
        width: 100%;
        margin-top: 0.5rem;
        justify-content: center;
    }
    .try-gemini-btn {
        margin: 0.5rem 0 0;
        width: 100%;
        justify-content: center;
        max-width: 260px;
    }
}
/* Make Gemini button icon smaller and aligned */
.try-gemini-btn img {
    width: 18px !important;
    height: 18px !important;
    margin-right: 0.4em;
    vertical-align: middle;
}
/* Gemini AI Prompts Button Styles - like 'Run prompt' */
.try-gemini-btn {
    margin-left: 0.5rem;
    background: #262626;
    color: #fff;
    padding: 4px 12px 4px 10px;
    border-radius: 7px;
    font-weight: 500;
    text-decoration: none;
    font-size: 13.5px;
    border: none;
    box-shadow: none;
    display: flex;
    align-items: center;
    height: 32px;
    min-height: 32px;
    gap: 0.4em;
    cursor: pointer;
    transition: background 0.18s, box-shadow 0.18s, transform 0.1s;
    line-height: 1;
    vertical-align: middle;
}
.try-gemini-btn:hover, .try-gemini-btn:focus {
    background: #333333;
    color: #fff;
    outline: none;
    text-decoration: none;
    transform: translateY(-1px) scale(1.03);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Ubuntu', sans-serif;
}

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 2rem;
    font-size: 16px; /* Set consistent base font size */
}

/* Enhanced smoothness for all elements */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: #ffffff;  /* #fff */
    color: #333; /* #333 */
    line-height: 1.6;
    padding: 4rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
}

.profile-info h1 {
    font-size: 24px;
    margin-bottom: 0.5rem;
}

.location {
    color: #666;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-links {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.social-icon {
    width: 24px;  /* Reduced from 24px */
    height: 24px; /* Reduced from 24px */
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 4px;
    padding: 2px;
    transition: background-color 0.2s; /* transition: background-color 0.2s; */
}

.social-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.social-icon:hover {
background-color: #ffffff; /* #f0f0f0; */
}

.profile-image {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 1.5px solid #ccc;  /* Add border for better appearance updated */ 
    object-fit: cover;
}

/* Bio Styles */
.bio {
    margin-bottom: 2rem;
}

.bio ul {
    list-style: none;
    margin-top: 1rem;
}

.bio li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: baseline;
}

.bio li::before {
    content: "•";
    margin-right: 0.5rem;
    color: #666;
}

/* Section Styles */
.section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 20px;
    margin-bottom: 1rem;
}

/* Card Styles */
.card {
    background: #f5f5f5;
    border: none;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

/* Updated Card Icon/Logo Styles */
.card-icon {
    width: 48px;  /* Reduced from 48px */
    height: 48px; /* Reduced from 48px */
    background: #ffffff;  /* #f5f5f5 */
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; /* Prevents the icon from shrinking */
    overflow: hidden; /* Contains the image within bounds */
}

.card-icon img {
    width: 48px;  /* Reduced from 32px */
    height: 48px; /* Reduced from 32px */
    object-fit: contain; /* Maintains aspect ratio */
}

.card-icon .aws-logo-dark {
    display: none;
}

.card-icon .algorand-logo-dark {
    display: none;
}

body.dark-theme .card-icon .aws-logo-light {
    display: none;
}

body.dark-theme .card-icon .aws-logo-dark {
    display: block;
}

body.dark-theme .card-icon .algorand-logo-light {
    display: none;
}

body.dark-theme .card-icon .algorand-logo-dark {
    display: block;
}

.card-content {
    display: flex;
    gap: 1rem;
    align-items: flex-start; /* Aligns items to the top */
}

.card-details {
    flex: 1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.card-title {
    font-weight: bold;
}

.card-title a{
  color: inherit;
  text-decoration: none;
}

.card-date {
    color: #666;
    font-size: 14px;
}

.card-subtitle {
    color: #666;
    font-size: 14px;
    margin-bottom: 0.5rem;
}

.card-subtitle a {
    color: inherit;
    text-decoration: none;
}

.card-description {
    color: #333;
    font-size: 14px;
    line-height: 1.6;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.skill-category {
    background: #f5f5f5;
    padding: 1rem;
    border-radius: 8px;
}

.skill-category h3 {
    font-size: 16px;
    margin-bottom: 0.5rem;
}

/* .card {                                                             Animation
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  } */


  


@media (max-width: 640px) {
    body {
        padding: 1.5rem;
    }
    
    .container {
        max-width: 100%;
        width: 100%;
    }
    
    .header {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
    }

    .profile-image {
        margin-bottom: 1rem;
    }

    .social-links {
        justify-content: center;
    }

    .location {
        justify-content: center;
    }
}


.cert-container {
    background: #f5f5f5;
    border: none;
    border-radius: 8px;
    padding: 1.5rem;
  }
  
  .certifications ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .certifications li {
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    position: relative;
    padding-left: 1.2rem;
  }
  
  .certifications li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #666;
  }


.cert-link {
    color: #1a73e8 !important;
    text-decoration: none !important;
    font-size: 16px !important;
    margin-left: 8px !important;
    flex-shrink: 0 !important;
    outline: none !important;
    border: none !important;
    background: none !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

.cert-link:hover {
    color: #174ea6 !important;
    outline: none !important;
    border: none !important;
    background: none !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

.cert-link:focus {
    color: #174ea6 !important;
    outline: none !important;
    border: none !important;
    background: none !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

.cert-link:active {
    color: #174ea6 !important;
    outline: none !important;
    border: none !important;
    background: none !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}


  /* Add this to the end of your style.css file */

/* Theme Toggle Button Styles */
.theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1000;
}

.theme-toggle:hover {
    background-color: rgba(0, 0, 0, 0.1);
    transform: scale(1.1);
}

/* Specific styles for theme toggle icons */
.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s;
}

.theme-toggle .sun-icon {
    stroke: #333;
}

.theme-toggle .moon-icon {
    stroke: #333;
}

/* Show/hide icons based on theme */
body:not(.dark-theme) .moon-icon {
    display: none;
}

body.dark-theme .sun-icon {
    display: none;
}

/* Dark theme icon adjustments */
body.dark-theme .theme-toggle .sun-icon,
body.dark-theme .theme-toggle .moon-icon {
    stroke: #ffffff;
}

body.dark-theme .theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Dark mode icon adjustments for social and card icons */
body.dark-theme .social-icon img {
    filter: brightness(0) invert(1);
}

body.dark-theme .profile-image,
body.dark-theme img[src*="Thirumalesh"] {
    filter: none;
}

body.dark-theme .card-icon img[src*="mlritm.jpg"] {
    filter: none;
}

/* Light theme (default) */
body {
    background: #ffffff;
    color: #333;
}

/* Dark theme */
body.dark-theme {
    background: #1a1a1a;
    color: #ffffff;
}

body.dark-theme .card {
    background: #2d2d2d;
    border: none;
}

body.dark-theme .card-description {
    color: #e0e0e0;
}

body.dark-theme .skill-category {
    background: #333333;
}

body.dark-theme .cert-container {
    background: #2d2d2d;
    border: none;
}

body.dark-theme .card-subtitle, 
body.dark-theme .card-date,
body.dark-theme .location,
body.dark-theme .bio li::before,
body.dark-theme .certifications li::before {
    color: #bbbbbb;
}

body.dark-theme .social-icon:hover {
    background-color: #333333;
}

body.dark-theme .card-icon {
    background: #33333300;
}

body.dark-theme .cert-link {
    color: #4d9cff !important;
    outline: none !important;
    border: none !important;
    background: none !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

body.dark-theme .cert-link:hover {
    color: #77b5ff !important;
    outline: none !important;
    border: none !important;
    background: none !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

body.dark-theme .cert-link:focus {
    color: #77b5ff !important;
    outline: none !important;
    border: none !important;
    background: none !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

body.dark-theme .cert-link:active {
    color: #77b5ff !important;
    outline: none !important;
    border: none !important;
    background: none !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

body.dark-theme .card,
.skill-category,
.cert-container,
.social-icon,
.card-icon,
.card-description,
.card-subtitle,
.card-date,
.location,
.bio li::before,
.certifications li::before,
.cert-link {
    transition: all 0.3s ease;
}

/* Add responsive styles for theme toggle */
@media (max-width: 640px) {
    .theme-toggle {
        top: 10px;
        right: 10px;
    }
}

/* Search Functionality Styles */
.search-trigger {
    position: absolute;
    top: 20px;
    right: 70px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1000;
}

.search-trigger:hover {
    background-color: rgba(0, 0, 0, 0.1);
    transform: scale(1.1);
}

.search-trigger svg {
    stroke: #333;
}

body.dark-theme .search-trigger svg {
    stroke: #ffffff;
}

body.dark-theme .search-trigger:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.search-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.search-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.search-modal {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    animation: searchSlideIn 0.3s ease-out;
}

body.dark-theme .search-modal {
    background: #2d2d2d;
}

@keyframes searchSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-header {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

body.dark-theme .search-header {
    border-bottom-color: #444;
}

.search-header input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 0.5rem;
    background: transparent;
    color: inherit;
}

.search-header input::placeholder {
    color: #666;
}

body.dark-theme .search-header input::placeholder {
    color: #bbb;
}

.search-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: 0.5rem;
    border-radius: 4px;
    color: #666;
}

.search-close:hover {
    background: #f0f0f0;
    color: #333;
}

body.dark-theme .search-close {
    color: #bbb;
}

body.dark-theme .search-close:hover {
    background: #444;
    color: #fff;
}

.search-results {
    max-height: 60vh;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.search-result-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

.search-result-item:hover {
    background: #f8f8f8;
}

body.dark-theme .search-result-item {
    border-bottom-color: #444;
}

body.dark-theme .search-result-item:hover {
    background: #333;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-icon {
    font-size: 20px;
    margin-right: 1rem;
    margin-top: 0.2rem;
}

.search-result-content {
    flex: 1;
}

.search-result-title {
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: inherit;
}

.search-result-description {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 0.3rem;
}

body.dark-theme .search-result-description {
    color: #bbb;
}

.search-result-category {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    font-weight: 500;
}

body.dark-theme .search-result-category {
    color: #888;
}

.search-no-results {
    padding: 2rem;
    text-align: center;
    color: #666;
    font-style: italic;
}

body.dark-theme .search-no-results {
    color: #bbb;
}

/* Mobile search adjustments */
@media (max-width: 640px) {
    .search-trigger {
        top: 10px;
        right: 60px;
    }
    
    .search-container {
        padding: 1rem;
    }
    
    .search-modal {
        max-height: 90vh;
    }
    
    .search-header {
        padding: 0.75rem;
    }
    
    .search-header input {
        font-size: 14px;
    }
    
    .search-result-item {
        padding: 0.75rem;
    }
    
    .search-result-icon {
        font-size: 18px;
        margin-right: 0.75rem;
    }
    
    .search-result-description {
        font-size: 13px;
    }
}

/* Security & Monitoring Styles */
.security-warning {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #ff4444;
    color: white;
    padding: 0.5rem;
    text-align: center;
    z-index: 10002;
    font-size: 14px;
    display: none;
}

.security-warning.show {
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* A/B Testing Indicators (for debugging) */
.ab-test-indicator {
    position: fixed;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 10px;
    z-index: 9999;
    display: none;
}

body.debug-mode .ab-test-indicator {
    display: block;
}

/* Performance monitoring visual indicators */
.performance-indicator {
    position: fixed;
    top: 50px;
    right: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    z-index: 9998;
    display: none;
}

.performance-indicator.good {
    background: #4CAF50;
    color: white;
}

.performance-indicator.warning {
    background: #FF9800;
    color: white;
}

.performance-indicator.error {
    background: #F44336;
    color: white;
}

body.debug-mode .performance-indicator {
    display: flex;
}

/* Memory usage indicator */
.memory-indicator {
    position: fixed;
    bottom: 50px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 10px;
    z-index: 9997;
    display: none;
}

body.debug-mode .memory-indicator {
    display: block;
}

/* Console security styling */
.console-security-notice {
    background: linear-gradient(45deg, #ff6b6b, #ffa500);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    text-align: center;
    font-weight: bold;
    display: none;
}

/* Dark theme adjustments for security elements */
body.dark-theme .security-warning {
    background: #cc3333;
}

body.dark-theme .ab-test-indicator,
body.dark-theme .memory-indicator {
    background: rgba(255, 255, 255, 0.9);
    color: black;
}

/* Gallery Styling */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.gallery-item {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.3s;
}

.gallery-item:hover {
  transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 600px) {
  .gallery-item {
      width: 90px;
      height: 60px;
  }

  .arrow {
      font-size: 20px;
      padding: 2px;
  }
}

/* Lightbox Modal */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.lightbox img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 5px;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  cursor: pointer;
  display: none;
}

/* Navigation Arrows */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 30px;
  color: white;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.5);
  padding: 8px;
  border-radius: 5px;
  display: none;
}

.arrow-left {
  left: 10px;
}

.arrow-right {
  right: 10px;
}

@media (min-width: 768px) {
  .lightbox .arrow {
    display: block;
  }
}

@media (max-width: 767px) {
  .lightbox .arrow {
    display: none;
  }
}

/* Responsive Design */
@media (max-width: 600px) {
  .gallery-item {
      width: 90px;
      height: 60px;
  }

  .arrow {
      font-size: 20px;
      padding: 2px;
  }
}

.takeaways-list {
    list-style-position: outside;
    padding-left: 2em;
}

.blog-section p {
    margin-bottom: 0.2rem;
}

.section-divider {
    border: none;
    border-top: 1px solid #444;
    margin: 2.2rem 0 2.2rem 0;
    opacity: 0.5;
}
@media (prefers-color-scheme: light) {
    .section-divider {
        border-top: 1px solid #888;
        opacity: 0.7;
    }
}

.blog-desc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1em;
    margin-top: 0.2em;
    font-size: 1em;
}
.blog-desc-row span {
    flex: 1 1 auto;
    color: inherit;
}

/* Blog Page Styles moved from BuildwithAI.html */
.blog-container {
    max-width: 800px;
    margin: 3rem auto;
    /* background: #fff; */
    border-radius: 0;
    padding: 2rem;
    box-shadow: none;
}
.blog-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}
.blog-meta {
    color: #666;
    font-size: 1rem;
    margin-bottom: 2rem;
}
.blog-section {
    margin-bottom: 2rem;
}
.blog-section h2 {
    font-size: 1.2rem;
    margin-bottom: 0.3em;
}
.blog-section p {
    font-size: 1rem;
    line-height: 1.7;
}
a.back-link {
    display: inline-block;
    margin-top: 2rem;
    color: #1a73e8;
    text-decoration: none;
}
a.back-link:hover {
    text-decoration: underline;
}
body, html {
    background: #fff;
}
body.dark-theme, html.dark-theme {
    background: #1a1a1a;
}
body.dark-theme .blog-container {
    /* background: #232323; */
    color: #fff;
}
ul {
    margin-top: 0.2em;
}
.inside-heading {
    list-style-position: inside;
    padding-left: 1.2em;
    margin-left: 0;
}
.section-divider {
    border: none;
    border-top: 1px solid #444;
    margin: 2rem 0;
}

/* Removed .blog-subtitle, .tools-heading, and updated .inside-heading styles */

/* Blog post responsive styles */
@media (max-width: 767px) {
    .blog-container {
        padding: 0 1rem;
        max-width: 100%;
    }
    
    .blog-section {
        padding: 0;
        margin: 0 0 1rem 0;
    }
    
    .blog-section h2,
    .blog-section h3,
    .blog-section h4,
    .blog-section p,
    .blog-section li {
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }
    
    .code-block {
        margin: 0.5rem 0;
        max-width: 100%;
        overflow-x: auto;
    }
    
    /* Long URLs and links */
    a {
        word-break: break-all;
        overflow-wrap: break-word;
        max-width: 100%;
    }
    
    /* Inline code elements */
    code:not(.code-block code) {
        word-break: break-all;
        white-space: pre-wrap;
    }
    
    /* Image carousel responsiveness */
    .image-carousel {
        margin: 1rem 0;
    }
    
    .carousel-container {
        margin: 0;
        padding: 0 10px;
        max-width: 100%;
    }
    
    .carousel-wrapper {
        border-radius: 6px;
    }
    
    .carousel-slide img {
        max-width: 100%;
        width: 100%;
        height: auto;
        border-radius: 6px;
        object-fit: contain;
    }
    
    .carousel-btn {
        width: 32px;
        height: 32px;
        font-size: 16px;
        background: rgba(0,0,0,0.7);
    }
    
    .carousel-next {
        right: 5px;
        left: auto;
    }
    
    .carousel-prev {
        left: 5px;
        right: auto;
    }
    
    .carousel-indicators {
        margin-top: 0.75rem;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
        margin: 0 3px;
    }
}

@media (max-width: 640px) {
    body {
        padding: 1.5rem;
    }
    
    .blog-container {
        padding: 0 0.5rem;
        margin: 1rem 0;
        max-width: 100%;
    }
    
    .blog-title {
        font-size: 1.5rem;
        line-height: 1.3;
        word-wrap: break-word;
    }
    
    .blog-section h2 {
        font-size: 1.2rem;
        line-height: 1.3;
    }
    
    .blog-section h3 {
        font-size: 1.1rem;
        line-height: 1.3;
    }
    
    .blog-section h4 {
        font-size: 1rem;
        line-height: 1.3;
    }
    
    .blog-section p,
    .blog-section li {
        line-height: 1.4;
        word-break: break-word;
    }
    
    .copy-btn {
        font-size: 10px;
        padding: 2px 4px;
    }
    
    .inside-heading {
        padding-left: 1rem;
    }
    
    /* Carousel mobile adjustments */
    .image-carousel {
        margin: 0.75rem 0;
    }
    
    .carousel-container {
        padding: 0 5px;
    }
    
    .carousel-wrapper {
        border-radius: 4px;
    }
    
    .carousel-slide img {
        border-radius: 4px;
    }
    
    .carousel-btn {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .carousel-prev {
        left: 2px;
    }
    
    .carousel-next {
        right: 2px;
    }
    
    .carousel-indicators {
        margin-top: 0.5rem;
    }
    
    .indicator {
        width: 8px;
        height: 8px;
        margin: 0 2px;
    }
    
    /* Breadcrumb navigation */
    nav ol {
        flex-wrap: wrap;
        font-size: 0.8rem;
    }
    
    /* Blog meta */
    .blog-meta {
        font-size: 0.8rem;
    }
    
    /* Blockquote */
    blockquote {
        margin: 0.5rem 0;
        padding-left: 0.5rem;
        font-size: 0.9rem;
    }
}

/* Performance optimizations */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* GPU acceleration for smooth animations */
.theme-toggle, .social-icon, .card, .blog-card {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Optimize font loading */
/* font-display: swap is handled in @font-face rules */
