/* about.css */

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f9f9f9;
  color: #222;
  line-height: 1.6;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(to right, #1db954, #1ed760);
  color: white;
  padding: 60px 20px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.hero-section h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.hero-section p {
  font-size: 1.2rem;
}

/* Section Styling */
section {
  padding: 40px 20px;
  max-width: 1000px;
  margin: auto;
}
.about-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.profile-pic {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #1db954;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.profile-pic:hover {
  transform: scale(1.05);
}


section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #1db954;
  border-bottom: 2px solid #1db954;
  display: inline-block;
  padding-bottom: 5px;
}

section p,
section ul {
  font-size: 1rem;
  color: #333;
}

/* Tech Stack List */
.tech-stack ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.tech-stack li {
  background-color: #e8f5e9;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 500;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Keyboard Shortcuts Section */
.keyboard-shortcuts {
  background-color: #f5f5f5;
  border-top: 3px solid #1db954;
  border-bottom: 3px solid #1db954;
}

.shortcuts-intro {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 2rem;
  font-style: italic;
}

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

.shortcuts-category {
  background-color: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.shortcuts-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(29, 185, 84, 0.2);
}

.shortcuts-category h3 {
  color: #1db954;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.shortcuts-category i {
  font-size: 1.3rem;
}

.shortcuts-category.full-width {
  grid-column: 1 / -1;
}

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

.shortcut-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background-color: #f9f9f9;
  border-left: 3px solid #1db954;
  border-radius: 5px;
  transition: background-color 0.2s;
}

.shortcut-item:hover {
  background-color: #efefef;
}

.key-combo {
  flex-shrink: 0;
}

.key-combo kbd {
  background-color: #1db954;
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Courier New', monospace;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  display: inline-block;
}

.description {
  text-align: right;
  color: #555;
  font-size: 0.95rem;
}

/* Tips Section */
.tips-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.tip-item {
  background-color: #fffbf0;
  border-left: 4px solid #1db954;
  padding: 1rem;
  border-radius: 5px;
  color: #333;
  line-height: 1.6;
}

.tip-item strong {
  color: #1db954;
}

/* Help Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

.modal-content {
  background-color: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close {
  float: right;
  font-size: 28px;
  font-weight: bold;
  color: #999;
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #1db954;
}

.modal-title {
  color: #1db954;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  clear: both;
}

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

.modal-category h4 {
  color: #1db954;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-shortcut {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background-color: #f5f5f5;
  border-radius: 5px;
  margin-bottom: 0.5rem;
  transition: background-color 0.2s;
}

.modal-shortcut:hover {
  background-color: #efefef;
}

.modal-shortcut .kbd {
  margin-right: 0.5rem;
}

.modal-shortcut kbd {
  background-color: #1db954;
  color: white;
  padding: 0.3rem 0.6rem;
  border-radius: 3px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: 'Courier New', monospace;
}

.modal-shortcut span:last-child {
  color: #555;
  font-size: 0.95rem;
  text-align: right;
}

/* CTA Section */
.cta {
  background-color: #ffffff;
  border-top: 1px solid #ddd;
  text-align: center;
}

.cta-button {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 30px;
  background-color: #1db954;
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 30px;
  transition: background 0.3s ease;
}

.cta-button:hover {
  background-color: #17a74a;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  background-color: #f1f1f1;
  color: #555;
  margin-top: 40px;
}
@media (max-width: 768px) {
  .hero-section {
    padding: 40px 20px;
  }

  .hero-section h1 {
    font-size: 2.2rem;
  }

  .hero-section p {
    font-size: 1rem;
  }

  section {
    padding: 30px 20px;
  }

  section h2 {
    font-size: 1.5rem;
  }

  .about-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .profile-pic {
    width: 130px;
    height: 130px;
  }

  .tech-stack ul {
    justify-content: center;
  }

  .cta-button {
    padding: 10px 25px;
    font-size: 0.95rem;
  }
}

@media (max-width: 600px) {
  .hero-section {
    padding: 30px 15px;
  }

  .hero-section h1 {
    font-size: 1.8rem;
    margin-bottom: 8px;
  }

  .hero-section p {
    font-size: 0.95rem;
  }

  section {
    padding: 25px 15px;
  }

  section h2 {
    font-size: 1.4rem;
    margin-bottom: 15px;
  }

  .profile-pic {
    width: 110px;
    height: 110px;
  }

  .tech-stack ul {
    gap: 10px;
  }

  .tech-stack li {
    padding: 8px 15px;
    font-size: 0.9rem;
  }

  .cta-button {
    width: 80%;
    padding: 10px 20px;
    margin-top: 15px;
  }

  footer {
    font-size: 0.85rem;
    padding: 15px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 13px;
  }

  .hero-section {
    padding: 25px 12px;
  }

  .hero-section h1 {
    font-size: 1.5rem;
  }

  .hero-section p {
    font-size: 0.9rem;
  }

  section {
    padding: 20px 12px;
  }

  section h2 {
    font-size: 1.3rem;
  }

  section p,
  section ul {
    font-size: 0.95rem;
  }

  .profile-pic {
    width: 100px;
    height: 100px;
  }

  .about-content p {
    font-size: 0.9rem;
  }

  .tech-stack li {
    padding: 6px 12px;
    font-size: 0.85rem;
  }

  .cta-button {
    font-size: 0.9rem;
    padding: 9px 18px;
  }

  /* Shortcuts responsive */
  .shortcuts-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .shortcuts-category {
    padding: 1rem;
  }

  .shortcuts-category h3 {
    font-size: 1rem;
  }

  .shortcut-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .description {
    text-align: left;
  }

  .tips-list {
    grid-template-columns: 1fr;
  }

  .tip-item {
    padding: 0.8rem;
    font-size: 0.9rem;
  }

  /* Modal responsive */
  .modal-content {
    width: 95%;
    padding: 1rem;
  }

  .modal-title {
    font-size: 1.3rem;
  }

  .modal-shortcuts {
    grid-template-columns: 1fr;
  }

  .modal-shortcut {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem;
  }

  .modal-shortcut span:last-child {
    text-align: left;
    margin-top: 0.5rem;
  }
}
