/* static/css/custom.css */
:root {
  --primary-color: #5aa6ff;
  --secondary-color: #2d7bd9;
}

/* General Layout */
.landing-container {
  max-width: 1100px;
  margin: auto;
  padding: 2rem;
}

/* Profile Section */
.profile-section {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.rounded-image {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-color);
}

/* Sections */
.section-heading {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.skill-category {
  flex: 1 1 250px;
}

.projects-container, .posts-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.project-card, .post-card {
  padding: 1.2rem;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover, .post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.button {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 500;
  transition: background 0.3s ease;
}

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

/* General */
.container {
  max-width: 1100px;
  margin: auto;
  padding: 1rem;
}

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

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Dark mode scrollbar */
.dark ::-webkit-scrollbar-track {
  background: #1e1e1e;
}

.dark ::-webkit-scrollbar-thumb {
  background: #555;
}

.dark ::-webkit-scrollbar-thumb:hover {
  background: #777;
}

/* Custom animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-fadeIn {
  animation: fadeIn 0.5s ease-in-out;
}

/* static/css/custom.css */

/* Enhanced Markdown Styles */
.content {
  font-family: 'Inter', sans-serif; /* Matches your Tailwind config */
}

/* Headings */
.content h1 {
  font-size: 2.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  border-bottom: 3px solid var(--primary-color);
  padding-bottom: 0.5rem;
  letter-spacing: -0.025em;
}

.content h2 {
  font-size: 1.75rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: #1e3a8a; /* Darker blue for contrast */
}

.content h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 500;
  color: #1f2937; /* Gray-800 */
}

/* Paragraphs */
.content p {
  margin-bottom: 1.25rem;
  line-height: 1.75;
  color: #374151; /* Gray-700 */
}

/* Bold Text */
.content strong {
  font-weight: 700;
  color: var(--secondary-color);
}

/* Lists */
.content ul {
  list-style-type: disc;
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.content ul li {
  margin-bottom: 0.5rem;
}

.content ol {
  list-style-type: decimal;
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Links */
.content a {
  color: var(--primary-color);
  text-decoration: none;
  border-bottom: 2px solid var(--primary-color);
  transition: all 0.2s ease;
}

.content a:hover {
  color: var(--secondary-color);
  border-bottom-color: var(--secondary-color);
}

/* Code Blocks */
.content pre {
  background-color: #f9fafb; /* Gray-50 */
  border-radius: 0.75rem;
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  border-left: 5px solid var(--primary-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.content pre code {
  background: none;
  padding: 0;
  color: #1f2937; /* Gray-800 */
}

/* Inline Code */
.content code {
  background-color: #f3f4f6; /* Gray-100 */
  padding: 0.2rem 0.5rem;
  border-radius: 0.375rem;
  font-family: 'Fira Code', monospace; /* Suggest adding a coding font */
  color: #d01b5e; /* Pinkish-red for code */
}

/* Dark Mode Adjustments */
.dark .content p {
  color: #d1d5db; /* Gray-300 */
}

.dark .content h2 {
  color: #93c5fd; /* Lighter blue */
}

.dark .content h3 {
  color: #e5e7eb; /* Gray-200 */
}

.dark .content strong {
  color: #93c5fd;
}

.dark .content pre {
  background-color: #1f2937; /* Gray-800 */
  border-left-color: var(--secondary-color);
}

.dark .content pre code {
  color: #e5e7eb; /* Gray-200 */
}

.dark .content code {
  background-color: #374151; /* Gray-700 */
  color: #f9a8d4; /* Softer pink */
}

/* Blockquotes */
.content blockquote {
  border-left: 5px solid var(--primary-color);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: #f9fafb;
  color: #4b5563; /* Gray-600 */
  font-style: italic;
  border-radius: 0.375rem;
}

.dark .content blockquote {
  background: #1f2937;
  color: #9ca3af; /* Gray-400 */
}

/* Optional: Add a subtle animation */
.content h1,
.content h2,
.content p {
  animation: fadeIn 0.5s ease-in-out;
}

/* custom.css */
.prose {
  margin-bottom: 3rem;
}
/* custom.css */
.grid > div {
  animation: fadeIn 0.5s ease-in-out;
}

/* Better readability */
.text-primary {
  color: #5aa6ff;
}
.text-gray-700 {
  color: #374151;
}
.dark .text-gray-700 {
  color: #d1d5db;
}

/* Improve code blocks */
.content pre {
  background-color: #f3f4f6;
  padding: 1.2rem;
  border-radius: 0.5rem;
  font-family: "Fira Code", monospace;
}
.dark .content pre {
  background-color: #1e293b;
  color: #e5e7eb;
}
