@font-face {
  font-family: "Geist";
  src: url("../fonts/Geist-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "Geist";
  src: url("../fonts/Geist-Medium.woff2") format("woff2");
  font-weight: 500;
}
@font-face {
  font-family: "Geist";
  src: url("../fonts/Geist-Bold.woff2") format("woff2");
  font-weight: 700;
}

body {
  margin: 0;
  font-family: "Geist", sans-serif;
  font-weight: 400;
  font-style: normal;
  background: #000000;
  color: white;
}

a {
  color: white;
  text-decoration: underline;
}
a:hover {
  text-decoration: none;
}

/* Container */
.container {
  max-width: calc(100% - 800px);
  margin: 0 auto;
  padding: 20px;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  /* border-bottom: 1px solid #ccc; */
}

/* .logo {
  font-weight: bold;
  font-size: 1.5rem;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
} */

.logo-img {
  height: 60px;
  width: auto;
  border-radius: 7px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); /* optional shadow */
}

/* Menu links */
.nav-links a {
  margin-top: 2rem;
  margin-right: 14px;
  font-weight: 450;
  font-size: 0.95rem;
  color: white;
  text-decoration: underline;
  transition: text-decoration 0.3s ease;
}

.nav-links a:hover {
  text-decoration: none;
}

/* Hero */
.hero {
  margin-top: 8rem;
}

.hero h1 {
  margin-bottom: 0.6rem; /* very small gap below the title */
}

.hero-subtext {
  color: #374151;
  font-weight: 400;
  font-size: 1rem;
  margin: 0; /* removes default paragraph margin */
  margin-bottom: 2rem;
}

/* About */
.about {
  font-weight: 400;
}
.about p {
  margin-bottom: 10px;
  line-height: 1.8; /* generous line spacing */
  letter-spacing: 0.3px; /* slightly wider letters */
  word-spacing: 0.3px; /* space between words */
  text-align: justify; /* optional: clean edge blocks */
}

.social-links {
  margin-top: 1rem;
}

.social-links p {
  /* display: inline; */
  margin-top: 2rem;
  font-weight: 500; /* Slightly bold (not too heavy) */
  margin-right: 10px;
  font-size: 0.95rem;
  color: white; /* Optional: a slightly deeper gray for distinction */
}

.social-links a {
  margin-right: 15px;
  font-weight: 400;
  font-size: 0.95rem;
  text-decoration: underline;
  color: white;
}
.social-links a:hover {
  text-decoration: none;
}

/* Articles */
.articles p {
  margin-top: 3rem;
  color: white;
}

.article-list {
  margin-top: 1rem;
}

.article-item {
  margin-bottom: 1rem;
  display: flex;
  align-items: baseline;
  gap: 2rem; /* approx. 1 tab spacing */
}

.article-date {
  color: #374151;
  font-weight: 400;
  min-width: 80px; /* ensures alignment */
}

.article-item a {
  color: white;
  text-decoration: underline;
  font-weight: 400;
}
.article-item a:hover {
  text-decoration: none;
}

/* Projects */

/* Projects Section */

/* .projects-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
} */

.section-title {
  font-size: 16px;
  font-weight: 600;
  color: white;
  margin-bottom: 1.5rem;
  margin-top: 3rem;
  padding-left: 0.25rem;
}

/* Grid with 3 cards in a row */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Card Design */
.card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: start;
  padding: 0;
  transition: outline 0.2s ease, box-shadow 0.2s ease;
  outline: none; /* no outline by default */
}

.card:hover {
  outline: 1px dashed #374151; /* adds space outside the card */
  outline-offset: 6px; /* gives that gap effect */
}

/* Image style */
.card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  display: block;
}
.card-content {
  /* padding: 1rem; */
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
/* Project title */
.card h3 {
  margin-bottom: 2px;
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: lowercase;
  color: #1f2937;
}

/* Project description */
.card p {
  margin-top: 1px;
  font-size: 0.88rem;
  font-weight: 400;
  color: #4b5563;
  line-height: 1.6;
  letter-spacing: 0.2px;
}

/* Footer */
footer {
  margin-top: 4rem;
  padding-top: 2rem;
  /* border-top: 1px solid #ccc; */
  text-align: center;
  font-size: 0.9rem;
}
.footer-links a {
  
  margin-top: 2rem;
  margin-right: 14px;
  font-weight: 450;
  font-size: 0.8rem;
  color: white;
  text-decoration: underline;
  transition: text-decoration 0.3s ease;
}

.footer-links a:hover {
  text-decoration: none;
}
footer p {
  margin-top: 15px;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  color: rgb(100, 116, 139);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .container {
    max-width: calc(100% - 200px);
    padding: 16px;
  }

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

@media (max-width: 768px) {
  .container {
    max-width: calc(100% - 60px);
    padding: 16px;
  }

  .navbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .nav-links a {
    display: inline-block;
    margin-right: 12px;
    margin-top: 0;
  }

  .hero {
    margin-top: 4rem;
  }

  .article-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .card img {
    height: 180px;
  }

  .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px;
  }
}

.pages-des {
  margin-bottom: 40px;
  font-weight: 400;
  line-height: 1.8; /* generous line spacing */
  letter-spacing: 0.3px; /* slightly wider letters */
  word-spacing: 0.3px; /* space between words */
  text-align: justify; /* optional: clean edge blocks */
  margin-top: 0px;
}

.pages-title {
  font-size: 36px;
  font-weight: 800;
  color: white;
  margin-bottom: 1.5rem;
  margin-top: 5rem;
  padding-left: 0.25rem;
  line-height: 40px;
}

/* Reading Page Books */
.book-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 60px;
  margin-top: 1rem;
}

.book-link {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: start;
}

.book-cover {
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 10px;
}

.book-title {
  color: white;
  font-weight: 500;
  font-size: 0.95rem;
  margin: 4px 0 2px;
}

.book-author {
  color: #6b7280;
  font-weight: 400;
  font-size: 0.85rem;
  margin: 0;
}

@media (max-width: 1024px) {
  .book-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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