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

body {
  font-family: "Consolas", "Monaco", "Courier New", monospace;
  background-color: #1e1e1e;
  color: #d4d4d4;
  height: 100vh;
  overflow: hidden;
}

/* Main Layout */
.editor-container {
  display: flex;
  height: 100vh;
  background-color: #1e1e1e;
}

/* Sidebar Styling */
.sidebar {
  width: 280px;
  background-color: #252526;
  border-right: 1px solid #3c3c3c;
  display: flex;
  flex-direction: column;
}

.explorer-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px;
  color: #cccccc;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid #3c3c3c;
  background-color: #2d2d30;
}

.profile-image {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #007acc;
}

.file-list {
  padding: 15px 0;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  color: #cccccc;
}

.file-item:hover {
  background-color: #2a2d2e;
  color: #ffffff;
}

.file-item.active {
  background-color: #094771;
  color: #ffffff;
}

.file-item i {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.file-item .fa-user {
  color: #4fc3f7;
}

.file-item .fa-briefcase {
  color: #66bb6a;
}

.file-item .fa-code {
  color: #ffb74d;
}

.file-item .fa-graduation-cap {
  color: #ab47bc;
}

.file-item .fa-rocket {
  color: #ff6f00;
}

.file-item .fa-envelope {
  color: #ef5350;
}

/* Main Area */
.main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: #1e1e1e;
}

/* Tab Bar */
.tab-bar {
  display: flex;
  background-color: #2d2d30;
  border-bottom: 1px solid #3c3c3c;
}

.tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background-color: #2d2d30;
  color: #969696;
  border-right: 1px solid #3c3c3c;
  min-width: 160px;
}

.tab.active {
  background-color: #1e1e1e;
  color: #ffffff;
  border-bottom: 2px solid #007acc;
}

.tab i {
  font-size: 14px;
}

/* Content Area */
.content-area {
  flex: 1;
  overflow-y: auto;
  background-color: #1e1e1e;
}

.file-content {
  display: none;
  height: 100%;
}

.file-content.active {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

.content-wrapper {
  max-width: 900px;
  padding: 40px;
  line-height: 1.6;
}

/* Typography with Gradient Colors */
h1 {
  font-size: 32px;
  background: linear-gradient(135deg, #ffffff, #e0e0e0, #b3b3b3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  font-weight: normal;
}

h2 {
  font-size: 20px;
  background: linear-gradient(135deg, #4fc3f7, #29b6f6, #0288d1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  font-weight: normal;
}

h3 {
  font-size: 18px;
  background: linear-gradient(135deg, #ffb74d, #ffa726, #ff9800);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 30px 0 15px 0;
  font-weight: normal;
}

h4 {
  font-size: 16px;
  background: linear-gradient(135deg, #66bb6a, #4caf50, #388e3c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 20px 0 10px 0;
  font-weight: normal;
}

p {
  margin-bottom: 15px;
  color: #d4d4d4;
  line-height: 1.7;
}

ul {
  margin: 15px 0;
  padding-left: 20px;
}

li {
  margin-bottom: 8px;
  color: #d4d4d4;
}

.location {
  color: #ab47bc;
  font-size: 16px;
  margin-bottom: 30px;
}

/* Header Section */
.header-section {
  text-align: left;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #3c3c3c;
}

/* Summary Section */
.summary-section {
  margin-bottom: 40px;
}

/* Highlights Section */
.highlights-section ul {
  list-style: none;
  padding-left: 0;
}

.highlights-section li {
  padding: 8px 0;
  border-bottom: 1px solid #2d2d30;
  font-size: 15px;
}

.highlights-section li:last-child {
  border-bottom: none;
}

/* Current Role Card */
.current-role {
  margin-top: 40px;
}

.role-card {
  background-color: #252526;
  border: 1px solid #3c3c3c;
  border-radius: 6px;
  padding: 25px;
  margin-top: 15px;
}

.role-card h4 {
  background: linear-gradient(135deg, #ffffff, #e0e0e0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 5px 0;
  font-size: 18px;
}

.role-card .company {
  color: #4fc3f7;
  margin-bottom: 15px;
  font-weight: bold;
}

/* Experience Items */
.experience-item {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #2d2d30;
}

.experience-item:last-child {
  border-bottom: none;
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.experience-header h3 {
  margin: 0;
  background: linear-gradient(135deg, #ffffff, #e0e0e0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 20px;
}

.duration {
  color: #ab47bc;
  font-size: 14px;
  font-weight: bold;
}

.company-name {
  color: #4fc3f7;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 15px;
}

.achievements {
  margin-top: 15px;
}

.achievements li {
  margin-bottom: 10px;
  padding-left: 5px;
}

/* Skills Styling */
.skills-category {
  margin-bottom: 35px;
}

.skills-category h3 {
  margin-bottom: 20px;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.skill-tag {
  background-color: #094771;
  color: #ffffff;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 13px;
  border: 1px solid #007acc;
  transition: all 0.2s ease;
  cursor: default;
}

.skill-tag:hover {
  transform: translateY(-2px);
  background-color: #007acc;
  box-shadow: 0 4px 12px rgba(0, 122, 204, 0.3);
}

/* Projects Styling */
.project-item {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #2d2d30;
}

.project-item:last-child {
  border-bottom: none;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.project-header h3 {
  margin: 0;
  color: #ffffff;
  font-size: 20px;
}

.project-company {
  color: #4fc3f7;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 15px;
}

.project-description {
  color: #d4d4d4;
  margin-bottom: 15px;
  line-height: 1.7;
  font-style: italic;
}

.project-achievements {
  margin: 15px 0 20px 0;
}

.project-achievements li {
  margin-bottom: 10px;
  padding-left: 5px;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.tech-tag {
  background-color: #264f78;
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  border: 1px solid #007acc;
  transition: all 0.2s ease;
}

.tech-tag:hover {
  background-color: #007acc;
  transform: translateY(-1px);
}

/* Education Styling */
.education-item {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #2d2d30;
}

.education-item:last-child {
  border-bottom: none;
}

.education-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.education-header h3 {
  margin: 0;
  color: #ffffff;
  font-size: 20px;
}

.institution {
  color: #4fc3f7;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 5px;
}

.authority {
  color: #ab47bc;
  font-size: 14px;
  margin-bottom: 5px;
}

.grade,
.specialization {
  color: #66bb6a;
  margin-bottom: 8px;
}

.graduation-project {
  margin-top: 20px;
  padding: 20px;
  background-color: #252526;
  border-radius: 6px;
  border-left: 4px solid #ffb74d;
}

.graduation-project h4 {
  color: #ffb74d;
  margin-top: 0;
}

.project-grade {
  color: #66bb6a;
  margin-bottom: 10px;
}

/* Contact Styling - Full Width Cards */
.contact-section {
  margin-bottom: 40px;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 25px;
  background-color: #252526;
  border-radius: 8px;
  border: 1px solid #3c3c3c;
  transition: all 0.3s ease;
}

.contact-card:hover {
  border-color: #007acc;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 122, 204, 0.2);
}

.contact-card i {
  font-size: 24px;
  width: 40px;
  text-align: center;
  flex-shrink: 0;
}

.contact-card .fa-envelope {
  color: #ef5350;
}

.contact-card .fa-phone {
  color: #66bb6a;
}

.contact-card .fa-map-marker-alt {
  color: #ab47bc;
}

.contact-card .fa-linkedin {
  color: #0077b5;
}

.contact-card .fa-github {
  color: #ffffff;
}

.contact-details {
  flex: 1;
  margin: 0 20px;
}

.contact-details strong {
  color: #ffffff;
  display: block;
  margin-bottom: 5px;
  font-size: 16px;
}

.contact-details p {
  margin: 0;
  color: #cccccc;
  font-size: 14px;
  line-height: 1.4;
}

.contact-action {
  flex-shrink: 0;
}

.contact-btn {
  padding: 10px 20px;
  background-color: #007acc;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.contact-btn:hover {
  background-color: #005a9e;
  transform: scale(1.05);
}

/* Availability Section */
.availability-section {
  margin-top: 40px;
}

.status-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background-color: #1b5e20;
  border-radius: 6px;
  margin: 20px 0;
  border-left: 4px solid #4caf50;
}

.status-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.status-indicator.available {
  background-color: #4caf50;
  animation: pulse 2s infinite;
}

.status-card h4 {
  color: #ffffff;
  margin: 0 0 5px 0;
}

.status-card p {
  color: #c8e6c9;
  margin: 0;
}

/* Tooltip Styles */
.tooltip {
  position: relative;
}

.tooltip-text {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background-color: #2d2d30;
  color: #ffffff;
  text-align: center;
  padding: 8px 12px;
  border-radius: 6px;
  white-space: nowrap;
  z-index: 1000;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid #007acc;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  pointer-events: none;
  margin-bottom: 8px;
}

.tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #007acc transparent transparent transparent;
}

/* Desktop: No tooltips */
@media (min-width: 769px) {
  .tooltip:hover .tooltip-text,
  .tooltip:focus .tooltip-text,
  .tooltip.show .tooltip-text {
    visibility: hidden;
    opacity: 0;
  }
}

/* Mobile-only hover tooltips */
@media (max-width: 768px) {
  .tooltip-text {
    bottom: auto;
    top: 100%;
    transform: translateX(-50%) translateY(10px);
    margin-bottom: 0;
    margin-top: 8px;
    font-size: 12px;
    padding: 6px 10px;
    z-index: 10000;
  }

  .tooltip-text::after {
    top: -5px;
    border-color: transparent transparent #007acc transparent;
  }

  /* Mobile hover effect */
  .tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    animation: tooltipFadeIn 0.3s ease-out;
  }

  /* Ensure tooltips work on mobile hover */
  .file-item {
    position: relative;
  }

  .file-item .tooltip-text {
    position: absolute;
  }

}

/* Terminal Boot Sequence */
.terminal-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh; /* Dynamic viewport height for mobile */
  background: #0c0c0c;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: terminalFadeOut 1s ease-in-out 4s forwards;
  /* Fix for iOS Safari */
  -webkit-overflow-scrolling: touch;
}

.terminal-content {
  background: #1e1e1e;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  width: 90%;
  max-width: 600px;
  max-height: 70vh;
  border: 1px solid #333;
  /* Ensure proper sizing on mobile */
  min-height: 200px;
}

.terminal-header {
  background: #2d2d30;
  padding: 12px 16px;
  border-radius: 8px 8px 0 0;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #444;
}

.terminal-buttons {
  display: flex;
  gap: 8px;
  margin-right: 16px;
}

.terminal-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-btn.close {
  background: #ff5f57;
}

.terminal-btn.minimize {
  background: #ffbd2e;
}

.terminal-btn.maximize {
  background: #28ca42;
}

.terminal-title {
  color: #cccccc;
  font-size: 13px;
  font-weight: 500;
}

.terminal-body {
  padding: 20px;
  color: #00ff00;
  font-family: "Consolas", "Monaco", "Courier New", monospace;
  font-size: 14px;
  line-height: 1.6;
}

.terminal-line {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.prompt {
  color: #007acc;
  margin-right: 8px;
  font-weight: bold;
}

.command {
  color: #ffffff;
}

.cursor {
  animation: blink 1s infinite;
  color: #00ff00;
  font-weight: bold;
}

.boot-output-line {
  margin: 4px 0;
  opacity: 0;
  animation: typeIn 0.5s ease-in-out forwards;
}

.boot-output-line.success {
  color: #28ca42;
}

.boot-output-line.info {
  color: #007acc;
}

.boot-output-line.warning {
  color: #ffbd2e;
}

/* Mobile Terminal Adjustments */
@media (max-width: 768px) {
  .terminal-loader {
    padding: 20px;
    align-items: flex-start;
    padding-top: 15vh;
  }
  
  .terminal-content {
    width: 95%;
    max-height: 60vh;
    min-height: 250px;
  }
  
  .terminal-body {
    padding: 15px;
    font-size: 12px;
  }
  
  .terminal-header {
    padding: 10px 12px;
  }
  
  .terminal-title {
    font-size: 12px;
  }
}

/* Terminal Animation Keyframes */
@keyframes terminalFadeOut {
  0% {
    opacity: 1;
    visibility: visible;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

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

@keyframes typeIn {
  0% {
    opacity: 0;
    transform: translateX(-10px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}


/* Professional Tab Sliding Animations */
.tab-bar {
  position: relative;
  overflow: hidden;
}

.tab {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  transform: translateX(0);
  opacity: 1;
}

/* Tab sliding entrance animation */
.tab.slide-in {
  animation: slideInTab 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.tab.slide-out {
  animation: slideOutTab 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #007acc, #00d4ff);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.tab:hover::before {
  transform: scaleX(1);
}

.tab:hover {
  background-color: #1e1e1e;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 122, 204, 0.4);
}

.tab.active {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 6px 25px rgba(0, 122, 204, 0.5);
  background: linear-gradient(180deg, #2d2d30, #1e1e1e);
}

.tab.active::before {
  transform: scaleX(1);
  background: linear-gradient(90deg, #007acc, #00d4ff, #007acc);
  height: 3px;
  box-shadow: 0 0 10px rgba(0, 122, 204, 0.6);
}

.tab .close-btn {
  opacity: 0;
  margin-left: 8px;
  padding: 3px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  font-size: 10px;
  cursor: pointer;
  transform: scale(0.8);
}

.tab:hover .close-btn {
  opacity: 1;
  transform: scale(1);
}

.tab .close-btn:hover {
  background: linear-gradient(135deg, #ff6b6b, #ff5252);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
}

/* Tab sliding animations */
@keyframes slideInTab {
  0% {
    transform: translateX(100%) scale(0.8);
    opacity: 0;
  }
  50% {
    opacity: 0.7;
  }
  100% {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}

@keyframes slideOutTab {
  0% {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateX(-100%) scale(0.8);
    opacity: 0;
  }
}

/* Empty State Styling */
.empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 500px;
  padding: 40px;
}

.empty-state-content {
  text-align: center;
  max-width: 600px;
}

.empty-state-icon {
  font-size: 4rem;
  color: #007acc;
  margin-bottom: 20px;
  opacity: 0.8;
}

.empty-state h2 {
  background: linear-gradient(135deg, #ffffff, #e0e0e0, #b3b3b3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 28px;
  margin-bottom: 16px;
  font-weight: 300;
}

.empty-state p {
  color: #cccccc;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 30px;
}

.empty-state-suggestions {
  margin-top: 30px;
}

.empty-state-suggestions > span {
  color: #999999;
  font-size: 14px;
  display: block;
  margin-bottom: 15px;
}

.suggestion-tags {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.suggestion-tag {
  background: rgba(0, 122, 204, 0.1);
  border: 1px solid rgba(0, 122, 204, 0.3);
  padding: 8px 16px;
  border-radius: 20px;
  color: #007acc;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.suggestion-tag:hover {
  background: rgba(0, 122, 204, 0.2);
  border-color: #007acc;
  transform: translateY(-2px);
}

/* Desktop-only tab functionality */
@media (min-width: 769px) {
  .tab-bar {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .tab-bar::-webkit-scrollbar {
    display: none;
  }

  .tab {
    min-width: 160px;
    flex-shrink: 0;
  }
}

/* Mobile: Keep original single-tab behavior */
@media (max-width: 768px) {
  .empty-state {
    display: none !important;
  }

  .tab-bar {
    display: flex;
  }

  .tab .close-btn {
    display: none;
  }
}


/* Original Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tooltipFadeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
  }
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, #4caf50, #66bb6a);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(76, 175, 80, 0.4);
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast i {
  font-size: 16px;
}

.toast.success {
  background: linear-gradient(135deg, #4caf50, #66bb6a);
}

.toast.info {
  background: linear-gradient(135deg, #2196f3, #64b5f6);
}

.toast.warning {
  background: linear-gradient(135deg, #ff9800, #ffb74d);
}

.toast.error {
  background: linear-gradient(135deg, #f44336, #ef5350);
}

/* Mobile toast positioning */
@media (max-width: 768px) {
  .toast {
    bottom: 20px;
    right: 20px;
    left: 20px;
    transform: translateY(100%);
  }

  .toast.show {
    transform: translateY(0);
  }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background-color: #1e1e1e;
}

::-webkit-scrollbar-thumb {
  background-color: #424242;
  border-radius: 6px;
  border: 2px solid #1e1e1e;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #4f4f4f;
}

/* Enhanced Responsive Design */
@media (max-width: 1200px) {
  .sidebar {
    width: 260px;
  }

  .content-wrapper {
    max-width: 800px;
    padding: 35px;
  }
}

@media (max-width: 992px) {
  .sidebar {
    width: 240px;
  }

  .content-wrapper {
    padding: 30px;
  }

  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  body {
    overflow: auto;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.6;
    /* Force better font rendering on mobile */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
  }

  .editor-container {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }

  .sidebar {
    width: 100%;
    height: auto;
    min-height: 60px;
    border-right: none;
    border-bottom: 1px solid #3c3c3c;
    flex-shrink: 0;
  }

  .explorer-header {
    padding: 12px 15px;
    font-size: 10px;
  }

  .profile-image {
    width: 20px;
    height: 20px;
  }

  .file-list {
    display: flex;
    overflow-x: auto;
    padding: 8px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 5px;
    justify-content: center;
    align-items: center;
    /* Better centering on mobile */
    flex-wrap: nowrap;
    width: 100%;
  }

  .file-list::-webkit-scrollbar {
    display: none;
  }

  .file-item {
    min-width: 100px;
    white-space: nowrap;
    padding: 8px 12px;
    font-size: 11px;
    border-bottom: 2px solid transparent;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }

  .file-item i {
    font-size: 12px;
    width: auto;
  }

  .file-item span {
    display: none;
  }

  .file-item.active {
    background-color: transparent;
    border-bottom-color: #007acc;
    color: #007acc;
  }

  .tab-bar {
    display: none;
  }

  .main-area {
    flex: 1;
    height: auto;
  }

  .content-area {
    height: auto;
    overflow-y: visible;
  }

  .content-wrapper {
    padding: 25px 20px;
    max-width: none;
  }

  .experience-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .contact-cards .contact-card {
    flex-direction: column;
    text-align: center;
    gap: 15px;
    padding: 20px 15px;
  }

  .contact-details {
    margin: 0;
    text-align: center;
  }

  .skills-grid {
    gap: 8px;
  }

  .skill-tag {
    font-size: 12px;
    padding: 6px 12px;
  }

  .role-card {
    padding: 20px;
  }

  .graduation-project {
    padding: 15px;
  }
}

@media (max-width: 576px) {
  body {
    font-size: 20px;
    font-weight: 800;
    overflow: auto;
    line-height: 1.6;
    /* Enhanced font rendering for small screens */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
  }

  .content-wrapper {
    padding: 20px 15px;
  }

  h1 {
    font-size: 28px;
    font-weight: 700;
  }

  h2 {
    font-size: 20px;
    font-weight: 600;
  }

  h3 {
    font-size: 18px;
    font-weight: 600;
  }

  h4 {
    font-size: 16px;
    font-weight: 600;
  }

  p {
    font-weight: 700;
    font-size: 18px;
  }

  li {
    font-weight: 700;
    font-size: 17px;
  }

  .file-item {
    min-width: 50px;
    padding: 10px 8px;
    font-size: 12px;
  }

  .file-item i {
    font-size: 16px;
    width: auto;
  }

  .file-item span {
    display: none;
  }

  .experience-item,
  .education-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
  }

  .contact-cards .contact-card {
    padding: 15px;
    gap: 12px;
  }

  .contact-card i {
    font-size: 20px;
  }

  .contact-btn {
    padding: 8px 16px;
    font-size: 13px;
  }

  .skills-grid {
    gap: 6px;
    justify-content: center;
  }

  .skill-tag {
    font-size: 11px;
    padding: 5px 10px;
  }

  .status-card {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .highlights-section li {
    font-size: 14px;
    padding: 6px 0;
  }
}

@media (max-width: 375px) {
  .content-wrapper {
    padding: 15px 10px;
  }

  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 16px;
  }

  .file-item {
    min-width: 100px;
    padding: 8px 10px;
  }

  .skill-tag {
    font-size: 10px;
    padding: 4px 8px;
  }

  .role-card,
  .graduation-project {
    padding: 15px;
  }
}

/* Landscape orientation for tablets */
@media (max-width: 1024px) and (orientation: landscape) {
  .editor-container {
    flex-direction: row;
  }

  .sidebar {
    width: 200px;
    height: 100vh;
    border-right: 1px solid #3c3c3c;
    border-bottom: none;
  }

  .file-list {
    flex-direction: column;
    padding: 10px 0;
  }

  .file-item {
    min-width: auto;
    padding: 10px 15px;
  }

  .tab-bar {
    display: flex;
  }
}
