/* --- Global Styles & Variables --- */
:root {
    --primary-color: #1a1c23;
    --secondary-color: #21242b;
    --text-color: #a9b1d6;
    --heading-color: #7aa2f7;
    --accent-color: #7dcfff;
    --accent-rgb: 125, 207, 255;
    --accent-hover: #9eddff;
    --border-color: #292e42;
    --highlight-skill-color: #9ece6a;
    --highlight-db-color: #bb9af7;
    --highlight-topic-color: #ff9e64;
    --tag-bg: #24283b;
    --tag-text: #c0caf5;
    --shadow-color-light: rgba(0, 0, 0, 0.15);
    --shadow-color-medium: rgba(0, 0, 0, 0.25);
    --shadow-color-dark: rgba(0, 0, 0, 0.35);
    --font-family-sans: 'JetBrains Mono', 'Inter', monospace;
    --border-radius-sm: 0;
    --border-radius-md: 0;
    --border-radius-lg: 0;
    --button-curve-radius: 0;
    --button-edge-margin: 20px;
    --button-vertical-spacing: 16%; 
    --theme-transition: 0.4s ease;
    --comment-color: #565f89;
    --function-color: #2ac3de;
    --keyword-color: #9d7cd8;
    --string-color: #9ece6a;
    --operator-color: #89ddff;
    --variable-color: #c0caf5;
    --error-color: #f7768e;
    --warning-color: #e0af68;
    --success-color: #73daca;
    
    /* Scrollbar Colors */
    --scrollbar-thin-width: 6px;
    --scrollbar-regular-width: 10px;
    --scrollbar-track-color: rgba(0, 0, 0, 0.1);
    --scrollbar-thumb-color: var(--accent-color);
    --scrollbar-thumb-hover-color: var(--accent-hover);
    
    /* Gradient Colors */
    --gradient-blue: linear-gradient(135deg, #7aa2f7, #2ac3de);
    --gradient-purple: linear-gradient(135deg, #bb9af7, #9d7cd8);
    --gradient-orange: linear-gradient(135deg, #ff9e64, #e0af68);
    --gradient-green: linear-gradient(135deg, #9ece6a, #73daca);
    
    /* Project card highlighting colors */
    --highlight-keyword: #bb9af7;
    --highlight-function: #7aa2f7;
    --highlight-string: #9ece6a;
    --highlight-number: #ff9e64;
    --highlight-comment: #565f89;
    --highlight-important: #f7768e;
    --highlight-tech: #7dcfff;
}

/* Default is already dark theme, light theme is applied via class */
/* Light Theme Variables */
.light-theme {
    --primary-color: #fafafa;
    --secondary-color: #f0f0f0;
    --text-color: #565f89;
    --heading-color: #2e5edf;
    --accent-color: #0db9d7;
    --accent-rgb: 13, 185, 215;
    --accent-hover: #0f9eb7;
    --border-color: #c0caf5;
    --highlight-skill-color: #485e30;
    --highlight-db-color: #8351bc;
    --highlight-topic-color: #ff9e64;
    --tag-bg: #e1e2e7;
    --tag-text: #343b58;
    --shadow-color-light: rgba(0, 0, 0, 0.03);
    --shadow-color-medium: rgba(0, 0, 0, 0.06);
    --shadow-color-dark: rgba(0, 0, 0, 0.09);
    --comment-color: #848cb5;
    --function-color: #107888;
    --keyword-color: #8351bc;
    --string-color: #485e30;
    --operator-color: #2e5edf;
    --variable-color: #3760bf;
    --error-color: #c53b53;
    --warning-color: #b58144;
    --success-color: #3e887b;
    
    /* Gradient Colors */
    --gradient-blue: linear-gradient(135deg, #2e5edf, #0db9d7);
    --gradient-purple: linear-gradient(135deg, #8351bc, #614399);
    --gradient-orange: linear-gradient(135deg, #e07a32, #b58144);
    --gradient-green: linear-gradient(135deg, #485e30, #3e887b);
    
    /* Project card highlighting colors for light theme */
    --highlight-keyword: #8351bc;
    --highlight-function: #2e5edf;
    --highlight-string: #485e30;
    --highlight-number: #b58144;
    --highlight-comment: #848cb5;
    --highlight-important: #c53b53;
    --highlight-tech: #0db9d7;
    
    /* Scrollbar colors for light theme */
    --scrollbar-track-color: rgba(0, 0, 0, 0.05);
    --scrollbar-thumb-color: var(--accent-color);
    --scrollbar-thumb-hover-color: var(--accent-hover);
}

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

/* --- Base Styles --- */
html { 
    scroll-behavior: smooth; 
    font-size: 16px;
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb-color) var(--scrollbar-track-color);
}

/* Global Scrollbar styling */
/* For Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: var(--scrollbar-regular-width);
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-track-color);
}

::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-thumb-color);
    border-radius: 8px;
    border: 2px solid transparent;
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--scrollbar-thumb-hover-color);
}

/* For Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb-color) var(--scrollbar-track-color);
}

body {
    font-family: var(--font-family-sans);
    color: var(--text-color);
    background-color: var(--primary-color);
    line-height: 1.6;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color var(--theme-transition), color var(--theme-transition);
}

/* --- Background Canvas --- */
#bg-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; display: block; }

/* --- Header & Navigation --- */
header { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    background-color: var(--secondary-color); 
    padding: 0.8rem 4%; 
    z-index: 1000; 
    border-bottom: 1px solid var(--border-color); 
    transition: background-color var(--theme-transition), border-color var(--theme-transition); 
}

nav { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    width: 100%;
    max-width: 1200px; 
    margin: 0 auto; 
}

/* Logo styling */
.logo { 
    font-size: 1.5rem; 
    font-weight: 700; 
    color: var(--heading-color); 
    text-decoration: none; 
    transition: color var(--theme-transition);
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-right: auto;
    min-width: fit-content; /* Ensure logo does not shrink below content size */
    white-space: nowrap; /* Keep logo text on one line */
    overflow: visible; /* Ensure text is not cut off */
    max-width: none; /* Prevent width restrictions that could truncate text */
}

.logo-link {
    text-decoration: none;
}

/* Header Icons Group - right corner */
.header-icons-group {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    margin-left: auto;
}

/* Theme Toggle Button */
.header-theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 5px 10px;
    margin: 0;
    transition: color var(--theme-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.header-theme-toggle:hover {
    color: var(--accent-color);
}

/* Mobile Social Icons - Always visible */
.mobile-social-icons {
    display: none;
    margin: 0;
    gap: 4px;
}

.mobile-social-icons .social-icon-link {
    font-size: 1.2rem;
    color: var(--text-color);
    transition: color 0.2s ease;
    padding: 5px 8px;
}

.mobile-social-icons .social-icon-link:hover {
    color: var(--accent-color);
}

nav ul { list-style: none; display: flex; align-items: center; }
nav ul li { margin-left: 2rem; }
nav ul li a:not(.social-icon-link) { 
    text-decoration: none; 
    color: var(--text-color); 
    font-weight: 500; 
    font-size: 0.9rem; 
    transition: color var(--theme-transition); 
    position: relative; 
    padding-bottom: 6px; 
}
nav ul li a:not(.social-icon-link)::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1px; background-color: var(--accent-color); transition: width 0.3s ease, background-color var(--theme-transition); }
nav ul li a:not(.social-icon-link):hover { color: var(--accent-color); }
nav ul li a:not(.social-icon-link):hover::after,
nav ul li a.active:not(.social-icon-link)::after { width: 100%; }
nav ul li a.active:not(.social-icon-link) { color: var(--accent-color); font-weight: 600; }
.social-icon-link { 
    color: var(--text-color); 
    text-decoration: none; 
    transition: color var(--theme-transition); 
    display: inline-block; 
}
.social-icon-link:hover { color: var(--accent-color); }
.social-icon-link i { vertical-align: middle; }

/* --- General Section Styling --- */
main { 
    position: relative; 
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: calc(100% - 300px);
    margin-left: 300px;
    min-height: 100vh;
    overflow-y: visible;
}

/* Key Achievements Section */
.achievements-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
    width: 100%;
    position: relative;
    z-index: 5; /* Ensure it's above sidebars */
}

.section {
    padding: 3rem 4% 2rem; 
    margin: 0 auto; 
    max-width: 1080px; 
    position: relative;
    width: 100%;
}
.section h2 { 
    text-align: center; 
    font-size: 2.2rem; 
    margin-bottom: 1rem; 
    color: var(--heading-color); 
    font-weight: 700; 
    letter-spacing: -0.5px; 
}
.section-subtitle { 
    text-align: center; 
    font-size: 1rem; 
    color: var(--text-color); 
    max-width: 650px; 
    margin: 0 auto 3.5rem auto; 
    line-height: 1.6;
}

/* --- Intro Section --- */
#intro { 
    padding-top: 80px; 
    padding-bottom: 1rem; 
    min-height: 90vh; 
    display: flex;
    align-items: center;
    position: relative;
    text-align: left;
    justify-content: center;
}

#intro::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-image: none;
    pointer-events: none;
    opacity: 0;
}

.intro-container { 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%; 
    max-width: 950px;
    margin: 0 auto;
    position: relative;
    gap: 1.5rem;
    padding: 1rem;
}

.profile-header {
    display: flex;
    align-items: flex-start;
    width: 100%;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.profile-section {
    position: relative;
    flex-shrink: 0;
    margin-top: 0.5rem;
}

.profile-pic-box {
    width: 180px;
    height: 180px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    border: 3px solid transparent;
    background-image: linear-gradient(var(--secondary-color), var(--secondary-color)), 
                      var(--gradient-blue);
    background-origin: border-box;
    background-clip: content-box, border-box;
    box-shadow: 0 6px 20px rgba(var(--accent-rgb), 0.25);
    overflow: hidden;
    position: relative;
}

.profile-pic-box img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1) contrast(1.05);
}

.name-tag {
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-color);
    color: var(--primary-color);
    font-size: 0.85rem;
    padding: 4px 12px;
    font-weight: bold;
    z-index: 10;
    border-radius: 4px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.profile-info {
    flex-grow: 1;
    padding-top: 1rem;
}

.greeting {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
    line-height: 1.1;
    font-family: var(--font-family-sans);
    display: inline-block;
}

.intro-text { 
    text-align: left;
    max-width: 95%;
}

.intro-text p {
    font-size: 1.05rem;
    margin-bottom: 0.8rem;
    line-height: 1.5;
    color: var(--text-color);
    font-family: var(--font-family-sans);
}

.highlighted-text {
    color: var(--accent-color);
    font-weight: 600;
}

.subtle-highlight {
    color: var(--highlight-topic-color);
    font-weight: 600;
}

.code-block {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    text-align: left;
    background-color: var(--secondary-color);
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background-color: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border-color);
}

.file-path {
    font-family: var(--font-family-sans);
    color: var(--comment-color);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
}

.file-path i {
    margin-right: 6px;
    font-size: 0.9rem;
    color: var(--accent-color);
}

.code-actions {
    display: flex;
    gap: 8px;
}

.code-action {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-action.close {
    background-color: #ff5f57;
}

.code-action.minimize {
    background-color: #ffbd2e;
}

.code-action.maximize {
    background-color: #28c840;
}

.code-content {
    padding: 20px;
    position: relative;
}

.intro-with-line-numbers {
    position: relative;
    padding-left: 40px;
    font-size: 0.92rem;
    line-height: 1.5;
}

.intro-line-numbers {
    position: absolute;
    left: 0;
    top: 0;
    width: 35px;
    color: var(--comment-color);
    font-size: 0.8rem;
    text-align: right;
    user-select: none;
    padding-top: 2px;
    opacity: 0.7;
}

.intro-line-numbers span {
    display: block;
    line-height: 1.73;
    padding-right: 8px;
}

.numbered-text p {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.cta-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-top: 0.8rem;
}

.cta-button {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    cursor: pointer;
}

.cta-button.primary {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border: none;
}

.cta-button.primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.cta-button.secondary {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.cta-button.secondary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

/* --- Feature cards --- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.feature-card {
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.feature-card h3 {
    color: var(--heading-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.feature-card p {
    color: var(--text-color);
    font-size: 0.9rem;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

/* --- Sliding Button Styles --- */
.slide-in-button {
    position: fixed;
    z-index: 900;
    background-color: var(--secondary-color);
    color: var(--accent-color);
    border: 1px solid var(--border-color);
    width: 100px;
    height: 100px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.slide-in-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-blue);
    opacity: 0.8;
}

.slide-in-button i {
    font-size: 1.6rem;
    margin-bottom: 8px;
    line-height: 1;
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.slide-in-button .button-title {
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.2;
    display: block;
    position: relative;
    padding-top: 2px;
    color: var(--text-color);
}

.slide-in-button .button-title::before {
    display: none;
}

.from-left::after,
.from-right::after {
    display: none;
}

.slide-in-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
    background-color: var(--secondary-color);
}

.slide-in-button:hover i {
    transform: scale(1.1);
    color: var(--accent-hover);
}

/* Button positioning */
.slide-in-button-container {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 100px;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    z-index: 900;
}

.left-buttons {
    left: 25px;
}

.right-buttons {
    right: 25px;
}

.slide-in-button {
    pointer-events: auto;
    position: relative;
    top: auto;
    left: auto;
    right: auto;
}

/* --- Modal Styles --- */
.modal {
  display: none;
  position: fixed;
  z-index: 1050;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.8);
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: var(--secondary-color);
  padding: 25px 30px;
  border: 1px solid var(--border-color);
  width: 90%;
  max-width: 850px;
  position: relative;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.modal-content h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.8rem;
}

.modal-scroll-content {
    overflow-y: auto;
    flex-grow: 1;
    padding-right: 15px;
    margin-right: -15px;
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb-color) transparent;
}

.modal-scroll-content::-webkit-scrollbar {
    width: var(--scrollbar-thin-width);
}

.modal-scroll-content::-webkit-scrollbar-track {
    background: transparent;
}

.modal-scroll-content::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-thumb-color);
    border-radius: 10px;
    border: 1px solid transparent;
    background-clip: content-box;
}

.modal-scroll-content::-webkit-scrollbar-thumb:hover {
    background-color: var(--scrollbar-thumb-hover-color);
}

.close-button {
  color: var(--text-color);
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 32px;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s;
}

.close-button:hover {
  color: var(--accent-color);
}

/* --- Status bar --- */
.statusbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 22px;
    background-color: var(--secondary-color);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    font-size: 0.8rem;
    border-top: 1px solid var(--border-color);
    z-index: 900;
}

.statusbar-left, .statusbar-right {
    display: flex;
    align-items: center;
}

.statusbar-left {
    flex: 1;
    justify-content: flex-start;
    position: relative;
}

.statusbar-mode {
    position: relative;
    left: 0;
    background-color: #7aa2f7;
    color: var(--primary-color);
    padding: 0 8px;
    font-weight: bold;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    border-radius: 0;
    height: 22px;
    display: flex;
    align-items: center;
    margin-right: 8px;
    text-transform: uppercase;
}

.statusbar-item {
    padding: 0 8px;
    display: flex;
    align-items: center;
}

.statusbar-item.copyright {
    color: var(--comment-color);
    font-size: 0.75rem;
    text-align: center;
    margin: 0 auto;
}

/* Fix statusbar item i */
.statusbar-item i {
    margin-right: 5px;
    font-size: 0.9rem;
}

/* Add speech bubble effect for Message indicator */
.statusbar-message {
    position: relative;
    background-color: #1e2028;
    color: white;
    padding: 0 8px;
    height: 22px;
    display: flex;
    align-items: center;
    border-radius: 4px;
    margin-left: 10px;
}

.statusbar-message::before {
    content: "";
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 6px solid #1e2028;
}

/* Command interface in statusbar */
.statusbar-command-container {
    position: relative;
    bottom: auto;
    left: auto;
    width: 100%;
    height: 100%;
    background-color: transparent;
    display: none;
    align-items: center;
    padding-left: 15px;
    margin-left: 10px;
    flex-grow: 1;
    z-index: 10;
}

.statusbar-command-container.active {
    display: flex;
}

.statusbar-command-input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-color);
    font-family: var(--font-family-sans);
    font-size: 0.9rem;
    width: 100%;
    height: 100%;
}

.command-prompt {
    color: var(--accent-color);
    font-weight: bold;
    margin-right: 8px;
    font-size: 0.9rem;
}

/* Command overlay remains for help */
.command-overlay {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 15px;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: none;
    max-width: 320px;
    width: 100%;
}

.command-hint-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.command-hint-title {
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 6px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 4px;
}

.command-hint {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.command-key {
    color: var(--accent-color);
    font-weight: 500;
    min-width: 70px;
}

.command-desc {
    color: var(--text-color);
}

.command-overlay.visible {
    display: block;
}

/* --- Footer --- */
footer { 
    text-align: center; 
    padding: 2.5rem 5% 40px; 
    color: var(--comment-color); 
    font-size: 0.9rem; 
    transition: background-color var(--theme-transition), border-color var(--theme-transition);
}

/* --- Mobile Menu Styles --- */
.hamburger-menu {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px 0 5px 10px;
    margin: 0;
    z-index: 1001;
}

.hamburger-icon {
    width: 22px;
    height: 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-icon span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--accent-color);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 998;
    opacity: 0;
    backdrop-filter: blur(3px);
    transition: opacity 0.3s ease;
}

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

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background-color: var(--primary-color);
    z-index: 999;
    padding: 70px 20px 20px;
    overflow-y: auto;
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.2);
    border-left: 1px solid var(--border-color);
    transition: right 0.3s ease;
}

.mobile-menu.active {
    right: 0;
    display: block;
}

.mobile-menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-menu-button {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px;
    background-color: var(--secondary-color);
    color: var(--text-color);
    text-decoration: none;
    border: none;
    border-left: 3px solid var(--accent-color);
    cursor: pointer;
    text-align: left;
    position: relative;
    transition: all 0.2s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.mobile-menu-button::before {
    content: "→";
    position: absolute;
    right: 15px;
    color: var(--comment-color);
    opacity: 0.7;
    transition: transform 0.2s ease;
}

.mobile-menu-button::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(var(--accent-rgb), 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-button:hover {
    background-color: var(--secondary-color);
    color: var(--accent-color);
    transform: translateX(5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.mobile-menu-button:hover::before {
    transform: translateX(3px);
    color: var(--accent-color);
}

.mobile-menu-button:hover::after {
    opacity: 1;
}

.mobile-menu-button i {
    font-size: 1.2rem;
    width: 22px;
    text-align: center;
    color: var(--accent-color);
}

.mobile-menu-button span {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.mobile-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    transition: color 0.2s ease;
    z-index: 1002;
}

.mobile-close:hover {
    color: var(--accent-color);
}

/* Media Queries */
@media (max-width: 1150px) {
    .hamburger-menu {
        display: block;
    }
    
    nav ul li {
        display: none;
    }
    
    /* .mobile-overlay, .mobile-menu {
        display: block;
    } */
    
    .slide-in-button-container {
        display: none;
    }
    
    /* Show mobile social icons */
    .mobile-social-icons {
        display: flex;
    }
}

@media (max-width: 992px) {
    #intro {
        padding-top: 90px;
        padding-bottom: 2rem;
        height: auto;
        min-height: 85vh;
    }
    
    .intro-container {
        max-width: 85%;
    }
    
    .profile-header {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .profile-section {
        margin-top: 0;
        margin-bottom: 0.5rem;
    }
    
    .profile-info {
        width: 100%;
        padding-top: 0.5rem;
    }
    
    .greeting {
        font-size: 2.5rem;
        text-align: center;
        margin: 0 auto;
    }
    
    .intro-text {
        text-align: center;
        max-width: 100%;
    }
    
    .professional-cta {
        justify-content: center;
    }
    
    .profile-pic-box {
        width: 170px;
        height: 170px;
    }
    
    .intro-text p {
        font-size: 1.05rem;
    }
    
    .profile-pic-box {
        width: 170px;
        height: 170px;
    }
    
    .code-block {
    max-width: 100%;
    }
    
    .code-content {
        padding: 14px;
    }
    
    .numbered-text p {
        font-size: 0.85rem;
    }
    
    .cursor {
        height: 16px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 3rem 3% 2rem; /* Reduced side padding from 5% to 2% */
    }
    
    #intro {
        padding-top: 80px;
        height: auto;
        min-height: 85vh;
        padding-left: 0;
        padding-right: 0;
    }
    
    .intro-container {
        max-width: 96%;
        padding-top: 1rem;
        padding-bottom: 2rem;
        padding-left: 10px;
        padding-right: 10px;
    }
    
    main {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }
    
    .profile-header {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .profile-section {
        margin-top: 0;
        margin-bottom: 0.5rem;
    }
    
    .profile-info {
        width: 100%;
        padding-top: 0.5rem;
    }
    
    .greeting {
        font-size: 2.5rem;
        text-align: center;
        margin: 0 auto;
    }
    
    .intro-text {
        text-align: center;
    max-width: 100%;
    }
    
    .intro-text p {
        font-size: 1rem;
    }
    
    .profile-pic-box {
        width: 160px;
        height: 160px;
    }
    
    /* Hide copyright, message, and AWS on mobile */
    .statusbar-item.copyright,
    .statusbar-message,
    .aws-indicator {
        display: none;
    }
    
    .name-tag {
        bottom: -10px;
        padding: 3px 10px;
        font-size: 0.8rem;
    }
    
    .code-content {
        padding: 12px 10px;
    }
    
    .numbered-text p {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
        line-height: 1.6;
    }
    
    .intro-with-line-numbers {
        padding-left: 28px;
    }
    
    .intro-line-numbers {
        font-size: 0.75rem;
        width: 24px;
    }
    
    .intro-line-numbers span {
        line-height: 1.6;
    }
    
    .cta-buttons {
        gap: 12px;
    }
    
    .cta-button {
        padding: 7px 18px;
        font-size: 0.8rem;
    }
    
    .cursor {
        height: 14px;
    }
}

@media (max-width: 480px) {
    #intro {
        padding-top: 70px;
        padding-bottom: 3rem;
    }
    
    .greeting {
        font-size: 2rem;
    }
    
    .intro-text p {
        font-size: 0.9rem;
    }
    
    .profile-pic-box {
        width: 140px;
        height: 140px;
    }
    
    /* Adjust statusbar spacing */
    .statusbar-left {
        justify-content: flex-start;
    }
    
    .statusbar-item {
        padding: 0 5px;
    }
    
    .code-block {
        max-width: 100%;
    }
    
    .code-header {
        padding: 8px 10px;
    }
    
    .code-content {
        padding: 10px 8px;
    }
    
    .file-path {
        font-size: 0.7rem;
    }
    
    .code-action {
        width: 9px;
        height: 9px;
    }
    
    .intro-with-line-numbers {
        padding-left: 24px;
    }
    
    .intro-line-numbers {
        width: 20px;
        font-size: 0.7rem;
    }
    
    .numbered-text p {
        font-size: 0.75rem;
        margin-bottom: 0.4rem;
        line-height: 1.5;
    }
    
    .cta-button {
        padding: 6px 16px;
        font-size: 0.75rem;
    }
    
    .cursor {
        height: 12px;
    }
    
    /* Project grid adjustments */
    .project-grid {
        grid-template-columns: 1fr;
    }
    
    /* Skills badges adjustments */
    .skills-badges {
        justify-content: center;
    }
    
    .skills-badges img,
    .certification-badges img {
        height: 22px;
    }
    
    /* About page adjustments */
    .about-title {
        font-size: 1.6rem;
    }
    
    .professional-summary p {
        font-size: 0.95rem;
    }
    
    .interests-container {
        justify-content: center;
    }
    
    /* Modal adjustments */
    .modal-content {
        width: 95%;
        padding: 15px;
        max-height: 90vh;
    }
    
    .modal-content h2 {
        font-size: 1.5rem;
    margin-bottom: 15px;
        padding-bottom: 10px;
    }
    
    @keyframes typing {
        from { width: 0 }
        to { width: 190px }
    }
    
    /* Make logo smaller on very small screens */
    .logo {
        font-size: 1.2rem;
        min-width: fit-content;
        white-space: nowrap;
        overflow: visible;
        max-width: none;
    }
    
    /* Adjust header padding */
    header {
        padding: 0.8rem 3%;
    }
    
    /* Remove margin from mobile social icons to save space */
    .mobile-social-icons {
        margin-right: 8px;
        gap: 6px;
    }
}

/* Media queries for better logo and nav layout at different screen sizes */
@media (max-width: 768px) {
    nav {
        justify-content: space-between;
    }
    
    .logo {
        margin-right: 0;
        min-width: fit-content;
        white-space: nowrap; /* Keep logo text on one line */
        overflow: visible; /* Ensure text is not cut off */
        max-width: none; /* Remove any width restriction */
    }
    
    .header-icons-group {
        display: flex;
        justify-content: flex-end;
        gap: 0;
        margin-left: auto;
    }
    
    .mobile-social-icons {
        display: flex;
    }
    
    .hamburger-menu {
        display: block;
    }
    
    .theme-toggle-container {
        display: none;
    }
}

/* Code cursor effect */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.cursor {
    display: inline-block;
    width: 2px;
    height: 18px;
    background-color: var(--accent-color);
    margin-left: 4px;
    vertical-align: middle;
    animation: blink 1s step-end infinite;
}

/* Line numbers for intro section */
.intro-with-line-numbers {
    position: relative;
    padding-left: 50px;
}

.intro-line-numbers {
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    color: var(--comment-color);
    font-size: 0.85rem;
    text-align: right;
    user-select: none;
    padding-top: 2px;
}

.intro-line-numbers span {
    display: block;
    line-height: 1.73;
    padding-right: 10px;
}

/* Enhance code syntax highlighting */
.variable {
    color: var(--variable-color);
}

.keyword {
    color: var(--keyword-color);
    font-weight: 600;
}

.function {
    color: var(--function-color);
}

.string {
    color: var(--string-color);
}

.comment {
    color: var(--comment-color);
    font-style: italic;
}

.bracket, .operator {
    color: var(--operator-color);
}

/* Additional media query refinements */
@media (max-width: 992px) {
    .code-content {
        padding: 14px;
    }
    
    .numbered-text p {
        font-size: 0.85rem;
    }
    
    .cursor {
        height: 16px;
    }
}

@media (max-width: 768px) {
    .code-content {
        padding: 12px 10px;
    }
    
    .numbered-text p {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
        line-height: 1.6;
    }
    
    .intro-with-line-numbers {
        padding-left: 28px;
    }
    
    .intro-line-numbers {
        font-size: 0.75rem;
        width: 24px;
    }
    
    .intro-line-numbers span {
        line-height: 1.6;
    }
    
    .cta-buttons {
        gap: 12px;
    }
    
    .cta-button {
        padding: 7px 18px;
        font-size: 0.8rem;
    }
    
    .cursor {
        height: 14px;
    }
}

@media (max-width: 480px) {
    .code-block {
    max-width: 100%;
    }
    
    .code-header {
        padding: 8px 10px;
    }
    
    .code-content {
        padding: 10px 8px;
    }
    
    .file-path {
        font-size: 0.7rem;
    }
    
    .code-action {
        width: 9px;
        height: 9px;
    }
    
    .intro-with-line-numbers {
        padding-left: 24px;
    }
    
    .intro-line-numbers {
        width: 20px;
        font-size: 0.7rem;
    }
    
    .numbered-text p {
        font-size: 0.75rem;
        margin-bottom: 0.4rem;
        line-height: 1.5;
    }
    
    .cta-button {
        padding: 6px 16px;
        font-size: 0.75rem;
    }
    
    .cursor {
        height: 12px;
    }
    
    /* Remove margin from mobile social icons to save space */
    .mobile-social-icons {
        margin-right: 8px;
        gap: 6px;
    }
}

/* Code block styling specific for light theme */
.light-theme .code-block {
    background-color: #f8f9fa;
    border: 1px solid #e2e8f0;
}

.light-theme .code-header {
    background-color: #e2e8f0;
    border-bottom: 1px solid #cbd5e0;
}

.light-theme .code-content {
    background-color: #ffffff;
}

.light-theme .intro-line-numbers {
    color: #a0aec0;
}

.light-theme .keyword {
    color: #8351bc;
    font-weight: 600;
}

.light-theme .string {
    color: #38a169;
}

.light-theme .variable {
    color: #2c5282;
}

.light-theme .function {
    color: #0987a0;
}

/* Improve the status bar styling for light theme */
.light-theme .statusbar {
    background-color: #e2e8f0;
    border-top: 1px solid #cbd5e0;
}

.light-theme .statusbar-mode {
    background-color: #3182ce;
}

.light-theme .statusbar-message {
    background-color: #4a5568;
}

.light-theme .statusbar-message::before {
    border-right-color: #4a5568;
}

/* Badge styles */
.skills-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.skills-badges img {
    height: 28px;
}

.skills-container h3 {
    font-size: 1.4rem;
    margin: 24px 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.skills-container h3.gradient-blue {
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.skills-container h3.gradient-purple {
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.skills-container h3.gradient-green {
    background: var(--gradient-green);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.skills-container h3.gradient-orange {
    background: var(--gradient-orange);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* About page styling */
.about-content {
    padding: 10px 0;
}

.about-header {
    margin-bottom: 20px;
    text-align: center;
}

.about-title {
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 2px;
    color: var(--heading-color);
    margin-bottom: 16px;
}

.professional-summary {
    margin-bottom: 32px;
    text-align: center;
}

.professional-summary p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
    max-width: 800px;
    margin: 0 auto;
}

.about-section {
    margin-bottom: 36px;
}

.about-section h3 {
    font-size: 1.4rem;
    margin-bottom: 18px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.focus-areas {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.focus-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background-color: var(--secondary-color);
    border-radius: 8px;
    padding: 16px;
    border-left: 3px solid var(--accent-color);
}

.focus-icon {
    font-size: 1.4rem;
    color: var(--accent-color);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(var(--accent-rgb), 0.1);
    border-radius: 50%;
    flex-shrink: 0;
}

.focus-content {
    flex-grow: 1;
}

.focus-content h4 {
    color: var(--heading-color);
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.focus-content p {
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.education-item {
    background-color: var(--secondary-color);
    border-radius: 8px;
    padding: 18px;
    border-left: 3px solid var(--accent-color);
}

.education-degree {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--heading-color);
    margin-bottom: 8px;
}

.education-school {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 8px;
}

.education-date {
    font-size: 0.9rem;
    color: var(--comment-color);
    margin-bottom: 12px;
}

.education-description {
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.6;
}

.certification-badges {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.certification-badges img {
    height: 28px;
}

/* Certification text blocks styling */
.cert-text-blocks {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.cert-block {
    background-color: #1a1c23;
    color: white;
    padding: 14px 18px;
    font-family: var(--font-family-sans);
    font-size: 0.9rem;
    letter-spacing: 1px;
    font-weight: 500;
    text-transform: uppercase;
    border-radius: 0;
    margin-bottom: 6px;
}

.interests-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.interest-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--secondary-color);
    border-radius: 20px;
    padding: 8px 14px;
    font-size: 0.9rem;
    color: var(--text-color);
}

.interest-item i {
    color: var(--accent-color);
    font-size: 0.9rem;
}

/* Responsive fixes for about section */
@media (max-width: 768px) {
    .about-title {
        font-size: 1.8rem;
    }
    
    .professional-summary p {
        font-size: 1rem;
    }
    
    .focus-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .focus-icon {
        margin-bottom: 6px;
    }
    
    .certification-badges img {
        height: 24px;
    }
}

@media (max-width: 480px) {
    .about-title {
        font-size: 1.6rem;
    }
    
    .professional-summary p {
        font-size: 0.95rem;
    }
    
    .interests-container {
        justify-content: center;
    }
}

/* Contact page styling */
.contact-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.contact-badges a {
    text-decoration: none;
}

/* Make the modals wider */
.modal-content {
    width: 90%;
    max-width: 900px;
}

/* Responsive fixes */
@media (max-width: 768px) {
    .skills-badges img,
    .certification-badges img {
        height: 24px;
    }
    
    .about-title {
        font-size: 1.8rem;
    }
    
    .title-item {
        font-size: 1.4rem;
    }
    
    .about-description {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .skills-badges {
        justify-content: center;
    }
    
    .skills-badges img,
    .certification-badges img {
        height: 22px;
    }
    
    .about-title {
        font-size: 1.6rem;
    }
    
    .title-item {
        font-size: 1.2rem;
    }
}

/* Project grid layout */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    width: 100%;
}

/* Project card styling */
.project-card {
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-blue);
    opacity: 0.8;
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.project-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.project-icon {
    font-size: 1.5rem;
    margin-right: 12px;
    width: 24px;
    text-align: center;
}

.project-card h3 {
    color: var(--heading-color);
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.project-tag {
    font-size: 0.7rem;
    padding: 2px 6px;
    background-color: rgba(var(--accent-rgb), 0.15);
    color: var(--accent-color);
    border-radius: 4px;
    font-weight: 500;
}

.project-description {
    color: var(--text-color);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 12px;
}

.project-features ul {
    margin: 0;
    padding-left: 18px;
}

.project-features li {
    color: var(--text-color);
    font-size: 0.8rem;
    margin-bottom: 5px;
    line-height: 1.4;
}

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

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

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

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

/* Light theme adjustments for project cards */
.light-theme .project-card {
    background-color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.light-theme .project-tag {
    background-color: rgba(var(--accent-rgb), 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .project-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }
    
    .project-card {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .project-grid {
        grid-template-columns: 1fr;
    }
}

/* Typing animation for greeting */
.typing-animation {
    overflow: hidden;
    border-right: 0.15em solid var(--accent-color);
    white-space: nowrap;
    margin: 0;
    width: 0;
    animation: 
        typing 1.2s steps(14, end) forwards,
        blink-cursor 1s step-end infinite;
    position: relative;
    display: inline-block;
}

.typing-animation.completed {
    border-right: 0.15em solid var(--accent-color); /* Keep the cursor visible */
    animation: blink-cursor 1s step-end infinite;
    white-space: nowrap;
}

/* Add animation to hide cursor after typing completes */
@keyframes typing {
    from { 
        width: 0;
    }
    to { 
        width: 340px;
    }
}

/* Cursor blink animation */
@keyframes blink-cursor {
    0%, 100% { 
        border-right-color: var(--accent-color); 
    }
    50% { 
        border-right-color: transparent; 
    }
}

/* Mobile fixes for typing animation */
@media (max-width: 768px) {
    .typing-animation {
        width: 0;
        margin: 0 auto;
        display: block;
        white-space: nowrap;
    }
    
    @keyframes typing {
        from { width: 0 }
        to { width: 340px }
    }
    
    /* Center the animation on mobile screens */
    .greeting.typing-animation {
        text-align: center;
        margin: 0 auto;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    @keyframes typing {
        from { width: 0 }
        to { width: 230px }
    }
    
    .greeting {
        font-size: 2.2rem;
        white-space: nowrap;
    }
}

/* Neovim-style buffer list overlay */
.buffer-list-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
    padding: 0;
    width: 600px;
    max-width: 90%;
    max-height: 80vh;
    z-index: 1100;
    display: none;
    border-radius: 4px;
    overflow: hidden;
}

.buffer-list-overlay.visible {
    display: block;
}

.buffer-list-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.buffer-list-title {
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 8px 16px;
    font-weight: bold;
    text-align: center;
    font-size: 1rem;
}

.buffer-list {
    flex-grow: 1;
    overflow-y: auto;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb-color) transparent;
}

.buffer-list::-webkit-scrollbar {
    width: var(--scrollbar-thin-width);
}

.buffer-list::-webkit-scrollbar-track {
    background: transparent;
}

.buffer-list::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-thumb-color);
    border-radius: 10px;
    border: 1px solid transparent;
    background-clip: content-box;
}

.buffer-list::-webkit-scrollbar-thumb:hover {
    background-color: var(--scrollbar-thumb-hover-color);
}

.buffer-item {
    display: flex;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
    transition: background-color 0.2s;
}

.buffer-item:hover {
    background-color: rgba(var(--accent-rgb), 0.1);
}

.buffer-number {
    color: var(--accent-color);
    font-weight: bold;
    margin-right: 15px;
    min-width: 20px;
    text-align: right;
}

.buffer-name {
    font-weight: 500;
    color: var(--heading-color);
    flex-grow: 1;
}

.buffer-info {
    color: var(--comment-color);
    font-size: 0.9rem;
    margin-left: auto;
}

.buffer-list-footer {
    padding: 8px 16px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--comment-color);
    background-color: rgba(0, 0, 0, 0.1);
}

/* Vim tip styling */
.vim-tip {
    font-size: 0.85rem;
    color: var(--comment-color);
    margin-top: 0.5rem;
    font-style: italic;
}

.vim-tip kbd {
    font-family: var(--font-family-sans);
    background-color: rgba(var(--accent-rgb), 0.1);
    color: var(--accent-color);
    border-radius: 3px;
    padding: 1px 4px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(var(--accent-rgb), 0.2);
}

/* Syntax highlighting for text */
.highlighted-text {
    color: var(--accent-color);
    font-weight: 600;
}

/* Neovim-style syntax highlights */
.keyword-text {
    color: var(--keyword-color);
    font-weight: 600;
}

.string-text {
    color: var(--string-color);
    font-weight: 500;
}

.function-text {
    color: var(--function-color);
    font-weight: 500;
}

.variable-text {
    color: var(--variable-color);
    font-weight: 500;
}

.type-text {
    color: var(--warning-color);
    font-weight: 500;
}

@media (max-width: 360px) {
    /* Even smaller screens */
    header {
        padding: 0.7rem 2%;
    }
    
    .logo {
        font-size: 1.1rem;
        min-width: fit-content; /* Ensure logo doesn't get truncated */
        white-space: nowrap; /* Keep logo text on one line */
        overflow: visible; /* Ensure text is not cut off */
        max-width: none; /* Remove any width restriction */
    }
    
    .mobile-social-icons .social-icon-link {
        font-size: 1rem;
        padding: 5px 5px;
    }
    
    .header-theme-toggle {
        font-size: 1rem;
        padding: 5px 8px;
    }
    
    .hamburger-icon {
        width: 18px;
        height: 14px;
    }
}

.statusbar-command-container.active ~ .copyright {
    display: none;
}

/* Project card content styling enhancements */
.project-description .keyword,
.project-features .keyword {
    color: var(--highlight-keyword);
    font-weight: 600;
}

.project-description .function,
.project-features .function {
    color: var(--highlight-function);
    font-weight: 600;
}

.project-description .string,
.project-features .string {
    color: var(--highlight-string);
}

.project-description .number,
.project-features .number {
    color: var(--highlight-number);
    font-weight: 500;
}

.project-description .comment,
.project-features .comment {
    color: var(--highlight-comment);
    font-style: italic;
}

.project-description .tech,
.project-features .tech {
    color: var(--highlight-tech);
    font-weight: 500;
}

.project-description .important,
.project-features .important {
    color: var(--highlight-important);
    font-weight: 600;
}

.project-features li strong {
    font-weight: 600;
    color: var(--heading-color);
}

/* Code-like spans in project descriptions */
.code-span {
    font-family: var(--font-family-sans);
    padding: 2px 4px;
    border-radius: 3px;
    background-color: rgba(0, 0, 0, 0.15);
    color: var(--accent-color);
    font-size: 0.9em;
}

.light-theme .code-span {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--highlight-function);
}

/* Navigation Menu Styling */
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    display: flex;
    align-items: center;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 6px 10px;
    border-radius: 6px;
}

.nav-menu a:hover {
    color: var(--accent-color);
    background-color: rgba(var(--accent-rgb), 0.1);
}

.nav-menu a i {
    margin-right: 6px;
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
}

/* Sidebar Heading */
.sidebar-heading {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    color: var(--heading-color);
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border-color);
}

.tech-category {
    margin-bottom: 1rem;
}

.tech-category h3 {
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
    font-weight: 600;
    position: relative;
    padding-left: 15px;
    color: var(--heading-color);
}

.tech-category h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: currentColor;
}

/* Core Expertise Section */
.tech-category-highlight {
    background-color: rgba(var(--accent-rgb), 0.1);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 25px;
}

.tech-category-highlight h3 {
    margin-bottom: 12px;
    color: var(--accent-color);
    text-align: center;
    padding-left: 0;
}

.tech-category-highlight h3::before {
    display: none;
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.tech-badge {
    background: var(--gradient-blue);
    color: var(--primary-color);
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    margin-bottom: 4px;
}

.tech-badge:nth-child(2) {
    background: var(--gradient-purple);
}

.tech-badge:nth-child(3) {
    background: var(--gradient-green);
}

.tech-badge:nth-child(4) {
    background: var(--gradient-orange);
}

.tech-badge:nth-child(5) {
    background: linear-gradient(135deg, #2ac3de, #7dcfff);
}

/* Improve contrast for light theme */
.light-theme .tech-badge {
    color: #111111; /* Much darker text for light theme */
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.3); /* Add subtle text shadow for better readability */
}

.light-theme .tech-category-highlight {
    background-color: rgba(13, 185, 215, 0.15); /* Slightly stronger background in light mode */
}

/* Improve contrast for other text elements in light theme */
.light-theme .skill-name {
    color: #333333; /* Darker text for skill names in light theme */
}

.light-theme .achievement-content h3 {
    color: #222222; /* Darker heading color in light theme */
}

.light-theme .greeting,
.light-theme .intro-text p {
    color: #333333; /* Darker text for intro text in light theme */
}

/* Left Sidebar Toggle Button */
.sidebar-toggle, .blog-sidebar-toggle {
    display: none;
    position: fixed;
    top: 80px;
    left: 20px;
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    color: var(--accent-color);
    border-radius: 4px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    z-index: 990; /* Reduced z-index to ensure it's below header (1000) */
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    overflow: hidden;
}

.sidebar-toggle::before, .blog-sidebar-toggle::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-blue);
    opacity: 0.8;
    z-index: 1;
}

.sidebar-toggle:hover::before, .blog-sidebar-toggle:hover::before {
    opacity: 1;
}

.sidebar-toggle i, .blog-sidebar-toggle i {
    font-size: 1.1rem;
    color: var(--accent-color);
    position: relative;
    transform: translateY(0);
    transition: transform 0.3s ease, color 0.3s ease;
}

.sidebar-toggle:hover i, .blog-sidebar-toggle:hover i {
    transform: translateY(-2px);
    color: var(--accent-color);
}

/* Scroll Indicator */
.scroll-indicator {
    position: fixed;
    left: 20px;
    bottom: 50px;
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 998;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    animation: bounce 2s infinite;
    transition: opacity 0.3s ease;
}

.scroll-indicator i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

/* Skill Meters */
.skill-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skill-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
}

.skill-name {
    color: var(--text-color);
    min-width: 40%;
}

.skill-level {
    width: 58%;
    height: 6px;
    background-color: rgba(var(--accent-rgb), 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.skill-meter {
    height: 100%;
    border-radius: 3px;
    background: var(--gradient-blue);
}

.skill-meter.beginner {
    width: 30%;
}

.skill-meter.intermediate {
    width: 65%;
}

.skill-meter.advanced {
    width: 90%;
}

.skill-meter.expert {
    width: 98%;
}

/* Left Sidebar */
.left-sidebar {
    position: fixed;
    top: 80px;
    left: 15px;
    width: 280px;
    background-color: var(--secondary-color);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 10;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    transition: all 0.3s ease;
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb-color) transparent;
}

.left-sidebar::-webkit-scrollbar {
    width: var(--scrollbar-thin-width);
}

.left-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.left-sidebar::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-thumb-color);
    border-radius: 10px;
    border: 1px solid transparent;
    background-clip: content-box;
}

.left-sidebar::-webkit-scrollbar-thumb:hover {
    background-color: var(--scrollbar-thumb-hover-color);
}

/* Main content adjustment */
main { 
    position: relative; 
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: calc(100% - 300px);
    margin-left: 300px;
    padding: 0 15px;
    min-height: 100vh;
    overflow-y: visible;
}

.sidebar-section {
    margin-bottom: 2rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-section h3 {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 600;
    position: relative;
    padding-left: 15px;
    color: var(--heading-color);
}

.sidebar-section h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: currentColor;
}

.education-brief {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background-color: rgba(var(--accent-rgb), 0.05);
    border-radius: 6px;
}

.degree-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(var(--accent-rgb), 0.1);
    border-radius: 50%;
}

.degree-icon i {
    color: var(--accent-color);
    font-size: 1rem;
}

.degree-info {
    flex-grow: 1;
}

.degree-title {
    color: var(--heading-color);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 2px;
}

.school-name {
    color: var(--text-color);
    font-size: 0.75rem;
}

.cert-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-cert-block {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    background-color: rgba(var(--accent-rgb), 0.05);
    border-radius: 6px;
    gap: 10px;
    transition: all 0.2s ease;
}

.sidebar-cert-block:hover {
    background-color: rgba(var(--accent-rgb), 0.1);
    transform: translateX(3px);
}

.sidebar-cert-block i {
    color: var(--accent-color);
    font-size: 1rem;
}

.sidebar-cert-block span {
    color: var(--text-color);
    font-size: 0.8rem;
    line-height: 1.3;
}

/* Professional CTA Buttons */
.professional-cta {
    display: flex;
    gap: 12px;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.pro-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-color);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.pro-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    color: var(--accent-color);
}

.pro-button.primary {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border: none;
}

.pro-button.primary:hover {
    background-color: var(--accent-hover);
    color: var(--primary-color);
}

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

/* Reduced Code Block */
.code-reduced {
    max-height: 600px;
    overflow: visible;
}

.highlight-text {
    color: var(--accent-color);
    font-weight: 600;
}

.highlight-important {
    color: var(--highlight-important);
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .left-sidebar {
        width: 240px;
        padding: 16px;
        left: 10px;
    }
    
    main {
        width: calc(100% - 270px);
        margin-left: 270px;
        padding: 0 12px;
    }
}

@media (max-width: 1200px) {
    /* Mobile sidebar styles */
    .left-sidebar {
        position: fixed;
        top: 60px;
        left: -300px;
        width: 280px;
        height: calc(100vh - 60px);
        max-height: none;
        overflow-y: auto;
        z-index: 999; /* Reduced z-index to position behind header */
        transition: left 0.3s ease;
        background-color: var(--secondary-color);
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
        padding: 25px;
        border-radius: 0;
        border-top: none;
    }
    
    .left-sidebar.active {
        left: 0;
    }
    
    .sidebar-toggle {
        display: flex;
    }
    
    main {
        width: 100%;
        margin-left: 0;
        padding: 0 20px;
    }
    
    /* Remove flex reordering */
    body {
        display: block;
    }
    
    /* Adjust the sidebar sections for vertical layout */
    .tech-category-highlight {
        padding: 20px;
    }
    
    .tech-badges {
        justify-content: flex-start;
        gap: 10px;
    }
    
    .skill-list {
        max-width: 100%;
    }
    
    .tech-category h3 {
        text-align: left;
        font-size: 1rem;
        padding-left: 15px;
    }
    
    .tech-category h3::before {
        display: block;
    }
    
    .sidebar-section h3 {
        text-align: left;
        font-size: 1rem;
        padding-left: 15px;
    }
    
    .sidebar-section h3::before {
        display: block;
    }
    
    .cert-items {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .sidebar-cert-block {
        width: 100%;
        min-width: 0;
    }
    
    .education-brief {
        max-width: 100%;
    }
    
    /* Sidebar heading */
    .sidebar-heading {
        margin-top: 0;
        font-size: 1.1rem;
    }
    
    /* Professional buttons */
    .professional-cta {
        justify-content: center;
    }
    
    .pro-button {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    /* Mobile refinements */
    .left-sidebar {
        padding: 20px;
    }
    
    .tech-badge {
        padding: 7px 10px;
        font-size: 0.82rem;
    }
}

.sidebar-tip {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 1rem;
}

.vim-command-tip {
    background-color: rgba(var(--accent-rgb), 0.08);
    border-radius: 6px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--text-color);
    border-left: 3px solid var(--accent-color);
}

.vim-command-tip i {
    color: var(--accent-color);
    font-size: 0.9rem;
}

.vim-command-tip kbd {
    font-family: var(--font-family-sans);
    background-color: rgba(var(--accent-rgb), 0.15);
    color: var(--accent-color);
    border-radius: 3px;
    padding: 1px 4px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(var(--accent-rgb), 0.25);
}

/* Key Achievements Section */
.achievements-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
    width: 100%;
    position: relative;
    z-index: 5; /* Ensure it's above sidebars */
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--heading-color);
    font-weight: 700;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-blue);
    border-radius: 2px;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(425px, 1fr));
    gap: 1.5rem;
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
}

.achievement-card {
    background-color: var(--secondary-color);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.achievement-icon {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    width: 70px;
    flex-shrink: 0;
}

.achievement-icon i {
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.achievement-card:nth-child(2) .achievement-icon i {
    background: var(--gradient-green);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.achievement-card:nth-child(3) .achievement-icon i {
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.achievement-card:nth-child(4) .achievement-icon i {
    background: var(--gradient-orange);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.achievement-content {
    padding: 1.5rem 1.5rem 1.5rem 0;
    flex-grow: 1;
}

.achievement-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
    color: var(--heading-color);
    font-weight: 600;
}

.achievement-content p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-color);
    margin-bottom: 0.8rem;
}

.achievement-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    font-size: 0.75rem;
    padding: 3px 8px;
    background-color: rgba(var(--accent-rgb), 0.1);
    color: var(--accent-color);
    border-radius: 4px;
}

/* Responsive adjustments for achievements section */
@media (max-width: 1200px) {
    .achievements-grid {
        grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    }
}

@media (max-width: 992px) {
    .achievements-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        max-width: 95%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .achievement-card {
        max-width: 100%;
    }
    
    /* Refine sidebar and content for medium screens */
    .left-sidebar {
        max-width: 700px;
        padding: 20px;
    }
    
    .tech-category-highlight {
        padding: 20px;
    }
    
    .sidebar-cert-block {
        min-width: 250px;
    }
    
    .tech-badges {
        gap: 12px;
    }
    
    .skill-list {
        max-width: 550px;
    }
}

@media (max-width: 768px) {
    /* Mobile refinements */
    .left-sidebar {
        padding: 20px;
        max-width: 600px;
    }
    
    .tech-badge {
        padding: 7px 10px;
        font-size: 0.82rem;
    }
    
    .sidebar-cert-block {
        min-width: 200px;
    }
    
    /* Make typing animation narrower on smaller screens */
    @keyframes typing {
        from { width: 0 }
        to { width: 300px }
    }
    
    /* Make achievement cards stack on mobile */
    .achievements-grid {
        grid-template-columns: 1fr;
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .achievement-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .achievement-icon {
        width: 100%;
        padding-bottom: 0.5rem;
    }
    
    .achievement-content {
        padding: 0 1.5rem 1.5rem;
    }
    
    .achievement-tech {
        justify-content: center;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
}

/* Adjust code block for different screen sizes */
@media (max-width: 1200px) {
    .code-reduced {
        max-height: 550px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .code-reduced {
        max-height: 520px;
    }
}

@media (max-width: 768px) {
    .typing-animation {
        width: 0;
        margin: 0 auto;
        display: block;
    }
    
    @keyframes typing {
        from { width: 0 }
        to { width: 270px }
    }
    
    /* Center the animation on mobile screens */
    .greeting.typing-animation {
        text-align: center;
        margin: 0 auto;
    }
    
    /* Modal adjustments */
    .modal-content {
        width: 95%;
        padding: 20px;
    }
    
    /* Project card adjustments */
    .project-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 16px;
        padding-left: 5px;
        padding-right: 5px;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }
    
    .project-card {
        padding: 14px;
    }
    
    /* About page adjustments */
    .about-title {
        font-size: 1.8rem;
    }
    
    .professional-summary p {
        font-size: 1rem;
    }
    
    .focus-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .focus-icon {
        margin-bottom: 6px;
    }
    
    .certification-badges img {
        height: 24px;
    }
    
    /* Center typing animation */
    .typing-animation {
        width: 0;
        margin: 0 auto;
        display: block;
    }
    
    .mobile-social-icons {
        display: flex;
        gap: 5px;
        margin-right: 6px;
    }
}

/* Responsive adjustments for main content - updated */
@media (max-width: 1200px) {
    #intro {
        padding-top: 100px;
        padding-bottom: 2rem;
    }
    
    .typing-animation {
        width: 0;
        margin: 0 auto;
        display: block;
    }
    
    @keyframes typing {
        from { width: 0 }
        to { width: 350px }
    }
    
    /* Center the animation on medium screens */
    .greeting.typing-animation {
        text-align: center;
        margin: 0 auto;
    }
    
    /* Improve code block size */
    .code-block {
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    @keyframes typing {
        from { width: 0 }
        to { width: 300px }
    }
    
    .greeting {
        font-size: 2.2rem;
        white-space: nowrap;
    }
}

.tech-category {
    margin-bottom: 1.5rem;
}

.tech-category h3 {
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skill-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
}

.skill-level {
    width: 55%;
    height: 7px;
    background-color: rgba(var(--accent-rgb), 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

@media (max-width: 576px) {
    .left-sidebar {
        padding: 15px;
    }
    
    main {
        width: 95vw; /* Use viewport width to maximize space */
        margin-left: auto;
        margin-right: auto;
        padding: 0;
        overflow-x: hidden; /* Prevent horizontal scrolling */
    }
    
    .section {
        padding: 2rem 1% 1.5rem; /* Minimal padding */
        max-width: 95vw;
        margin-left: auto;
        margin-right: auto;
    }
    
    .intro-container {
        max-width: 95%;
        padding-left: 5px;
        padding-right: 5px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .greeting {
        font-size: 2rem;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .cert-items {
        flex-direction: column;
    }
    
    .sidebar-cert-block {
        width: 100%;
    }
    
    .tech-badges {
        gap: 8px;
    }
    
    .tech-badge {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    /* Reduce other container paddings */
    .project-card, 
    .achievement-card,
    .focus-item,
    .education-item {
        padding: 12px;
    }
}

@media (max-width: 768px) {
    /* Project card adjustments */
    .project-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 16px;
        padding-left: 5px;
        padding-right: 5px;
        margin-left: auto;
        margin-right: auto;
        max-width: 95%;
    }
    
    .modal-scroll-content {
        padding-right: 10px;
        margin-right: -10px;
    }
}

@media (max-width: 480px) {
    /* Project grid adjustments */
    .project-grid {
        grid-template-columns: 1fr;
        padding: 0;
        margin: 0 auto;
        width: 95%;
    }
    
    .achievements-grid {
        margin-left: auto;
        margin-right: auto;
        width: 95%;
    }
}




