/* ===== GENERAL RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  background: #ffffff;
  color: #333;
}

/* ===== NAVBAR ===== */
.navbar {
  background: #f0f0f0;
  padding: 0.75rem 0;
  position: -webkit-sticky;
  top: 0;
  z-index: 1000;
}

.navbar a {
  text-decoration: none;
  font-weight: 600;
  color: #333;
  margin: 0 1.25rem;
}

.navbar a:hover,
.navbar a.active {
  color: #0077cc;
}

/* ===== TITLE SECTION ===== */
.about_me_title {
  background: #fafafa;
  text-align: center;
  padding: 2rem 1rem;
}

.about_me_title h1 {
  font-size: 2.2rem;
  color: #333;
  letter-spacing: 1px;
}

/* ===== GRID SECTIONS ===== */
.about_cont,
.project_tablet_cont {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
}

.about-left,
.project-tablet-left {
  flex: 1;
}

.about-right,
.project-tablet-right {
  flex: 1;
}

/* ===== PROJECT IMAGE ===== */
.project-image,
.project-tablet-image {
  max-width: 450px;   /* limit image size */
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

/* ===== TEXT STYLING ===== */
h2 {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

h3 {
  font-size: 1.2rem;
  font-style: italic;
  color: #555;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
  color: #444;
}

/* ===== LISTS ===== */
ul {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

/* ===== FIGURES ===== */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

figure {
  margin: 1.5rem 0;
}

figure img {
  border-radius: 5px;
}

figure figcaption {
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.5rem;
}

/* ===== FOOTER ===== */
.bottom_footer {
  background: #f0f0f0;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: #555;
}

.bottom_footer a {
  margin: 0 0.5rem;
  color: #0077cc;
  font-size: 1.2rem;
}

.bottom_footer a:hover {
  color: #005999;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 900px) {
  .about_cont,
  .project_tablet_cont {
    flex-direction: column;
    text-align: center;
  }

  .project-image,
  .project-tablet-image {
    max-width: 320px;
  }
}
