@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter.ttf') format('truetype');
  font-weight: 400 500;
  font-style: normal;
}

@font-face {
  font-family: 'Space Grotesk';
  src: url('/fonts/SpaceGrotesk.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

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

body {
  font-family: 'Inter', sans-serif;
  background: #f9f9f9;
  color: #111;
  line-height: 1.6;
  padding: 2rem;
}

::selection {
  background: #00ADD8;
  color: #ffffff;
}

h1, h2, h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2rem;
  border-bottom: 2px solid #000;
  display: inline-block;
  margin-top: 3rem;
}

p, li {
  font-size: 1rem;
  margin-bottom: 1rem;
}

a {
  color: #0070f3;
  text-decoration: none;
  transition: all 0.2s;
}

a:hover {
  color: inherit;
}

/* Layout */
header, main, footer {
  max-width: 900px;
  margin: 0 auto;
}

.hero {
  padding: 4rem 0;
  text-align: center;
}

.tagline {
  font-size: 1.25rem;
  margin: 1rem 0;
}

.cta-buttons {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  border: 2px solid #000;
  background: transparent;
  color: #000;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
  font-family: 'Inter', sans-serif;
  border-radius: 8px;
}

.btn:hover {
  background: #000;
  color: #fff;
}

.btn.secondary {
  border-color: #0070f3;
  color: #0070f3;
}

.btn.secondary:hover {
  background: #0070f3;
  color: #fff;
}

/* Sections */
.about, .projects, .contact, .certificates {
  margin-top: 3rem;
}

.project-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  justify-content: center;
  margin-top: 2rem;
}

.project-card {
  border: 2px solid #000;
  padding: 1.5rem;
  background: #fff;
  box-shadow: 4px 4px 0 #000;
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 6px 6px 0 #000;
}


.project-card .year {
  font-size: 0.9rem;
  color: #888;
  margin-left: 0.5rem;
}

.project-card .type {
  font-style: italic;
  color: #555;
  margin-bottom: 0.5rem;
}

.project-card .tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0;
  padding: 0;
}

.project-card .tags li {
  background: #eee;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-size: 0.8rem;
}

.project-card .project-links {
  margin-top: 0.5rem;
}

.project-card .project-links a {
  margin-right: 1rem;
  font-size: 0.9rem;
  color: #000;
}

/* Certificates */
.certificates h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #000;
  display: inline-block;
}

.certificates h3 {
  font-size: 1.2rem;
  margin: 2rem 0 0.75rem;
  border-bottom: 1px solid #ccc;
  padding-bottom: 0.25rem;
  color: #333;
  font-weight: 600;
}

.cert-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-start;
}

.cert-card {
  width: 180px;
  background: #fff;
  border: 2px solid #000;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  color: #000;
  text-decoration: none;
  box-shadow: 4px 4px 0 #000;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-family: 'Inter', sans-serif;
}

.cert-card:hover {
  transform: translateY(-3px);
  box-shadow: 6px 6px 0 #000;
}

.cert-card i {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem; /* optional: gives consistent height */
}

.cert-card span {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
}

.cert-card small {
  font-weight: 400;
  font-size: 0.75rem;
  color: #555;
}

/* Contact */
.contact-card {
  background: #fff;
  border: 2px solid #000;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 4px 4px 0 #000;
  max-width: 600px;
  margin: 2rem auto;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 6px 6px 0 #000;
}


.contact-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  text-align: center;
}

.contact-list li {
  display: flex;
  align-items: center;
}

.contact-list a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  color: #111;
  text-decoration: none;
  transition: color 0.2s;
}

.contact-list a:hover {
  color: #0070f3;
}

.contact-list i {
  font-size: 1.25rem;
  color: #333;
  min-width: 1.5rem;
  text-align: center;
  margin-right: 0.4rem;
}

/* More Profiles */
.more-profiles {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.show-more-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  color: #555;
  cursor: pointer;
  margin-top: 2rem;
}

.toggle-icon {
  transition: transform 0.3s ease;
}

.toggle-icon.rotated {
  transform: rotate(180deg);
}

/* General */
i {
  margin-right: 0.5rem;
  color: #555;
}

footer {
  margin-top: 4rem;
  padding-top: 2rem;
  text-align: center;
  border-top: 2px solid #000;
  font-size: 0.875rem;
  color: #555;
}

/* Responsive */
@media (max-width: 600px) {
  h1 {
    font-size: 2rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

/* LeetCode Journal List */

.problem-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.problem-list li {
  margin-bottom: 1rem;
  padding: 1rem;
  background: #fff;
  border: 2px solid #000;
  border-radius: 10px;
  box-shadow: 4px 4px 0 #000;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.problem-list li:hover {
  transform: translateY(-3px);
  box-shadow: 6px 6px 0 #000;
}

.problem-list a {
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  color: #111;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
}

.dsa-section {
  margin-top: 3rem;
}

.dsa-section h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-family: 'Space Grotesk', sans-serif;
  display: inline-block;
}

/* Tags for difficulty and topics */

.tags {
  display: flex;
  gap: 0.5rem;
  font-size: 0.85rem;
  margin-top: 0.3rem;
}

.tag {
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: #eee;
  font-weight: 500;
}

/* Difficulty-specific tags */

.easy {
  background: #d4edda;
  color: #155724;
}

.medium {
  background: #fff3cd;
  color: #856404;
}

.hard {
  background: #f8d7da;
  color: #721c24;
}

.external-link {
  margin-left: 18px;
}

/* Back Icon Start */

.back-icon-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  color: #111;
  margin-bottom: 2rem;
  transition: color 0.3s ease;
}

.back-icon-link i {
  font-size: 1.25rem;
  color: #000;
  border: 2px solid #000;
  border-radius: 50%;
  padding: 0.4rem;
  transition: background 0.3s, color 0.3s;
}

.back-icon-link:hover i {
  background: #000;
  color: #fff;
}

.back-icon-link:hover {
  color: #000;
}

/* Back Icon End */

/* Clean and Minimal DSA Journal Sections */

.entry-section {
  padding: 2.5rem 0;
  border-top: 1px solid #e2e2e2;
}

.entry-section:first-of-type {
  border-top: none;
}

.entry-section h3 {
  font-size: 1.25rem;
  font-family: 'Space Grotesk', sans-serif;
  margin-bottom: 1rem;
  color: #111;
}

.entry-section p,
.entry-section ul {
  font-size: 1rem;
  line-height: 1.7;
  color: #222;
}

.entry-section ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin: 1rem 0;
}

.entry-section code {
  background: #f4f4f4;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
}

.entry-section pre {
  background-color: #f5f5f5;
  padding: 1rem;
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre;
  color: #222;
  border: 1px solid #e0e0e0;
}

/* Library Start */
.genre-section {
  margin-top: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #ccc;
}

.book-grid {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.book-cover {
  height: 250px;
  width: auto;
  object-fit: contain;
  margin: 8px;
  border-radius: 0;
  display: block;
}

/* Library End */