body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto;
  margin: 0;
  line-height: 1.7;
  color: #111;
  background: #f5f5f5;
}



/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: #f5f5f5;
}

.logo {
  font-size: 20px;
  font-weight: bold;
}

.nav-links a {
  margin-left: 20px;
  text-decoration: none;
  color: #555;
}

.nav-links a:hover {
  color: black;
}

/* Center content */
.hero {
  text-align: center;
  padding: 40px 20px;
  max-width: 700px;
  margin: auto;
}

.profile-img {
  width: 150px;
  border-radius: 50%;
  margin-bottom: 15px;
}

h2 {
  margin-top: 20px;
}

/* Cards (NEW SECTION) */
.cards {
  display: flex;
  flex-direction: row;   /* keep everything in one row */
  justify-content: center;
  gap: 20px;             /* space between cards */
  margin: 40px auto;
  flex-wrap: wrap;       /* allows wrapping on small screens */
}

.card {
  width: 200px;
  height: 200px;
  border: 2px solid #111;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;      /* horizontal center */
  justify-content: center;   /* vertical center */
  text-align: center;
  text-decoration: none;
  color: #111;
  background: white;
  transition: 0.3s;
  padding: 15px;
}

.card {
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  transition: all 0.3s ease;
}

/* GREY + WHITE (clean minimal) */
.card-grey {
  background: linear-gradient(135deg, #f5f5f5, #bdbdbd);
  color: #222;
}

/* ORANGE SPOT THEME */
.card-orange {
  background: radial-gradient(circle at 30% 30%, #ffb347 0%, #ff7e5f 40%, #ffffff 80%);
  color: #222;
}

.card-blue {
  background: linear-gradient(135deg, #eaf6ff, #cfefff);
  color: #1a1a1a;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

/* Content styling */
.card-content div:first-child {
  font-size: 18px;
  font-weight: 600; /* semi-bold */
  letter-spacing: 0.5px;
}

.card-content div:last-child {
  font-size: 14px;
  font-weight: 400; /* normal */
  opacity: 0.8; /* softer look */
  margin-top: 6px;
}



.card:hover {
  transform: translateY(-5px);
  background: #eaeaea;
}

.card img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}

.card {
  text-align: center;
}


/*github in Index*/
a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.link {
  color: #1a73e8;
  text-decoration: none;
  cursor: pointer;
  transition: 0.2s ease;
}

.link:hover {
  text-decoration: underline;
  color: #0b5ed7;
}


/* Older posts */
.older-posts {
  text-align: center;
  margin-bottom: 30px;
}

/* Footer */
.footer {
  padding: 30px 20px;
  text-align: center;
}

.contact {
  display: flex;
  justify-content: space-between;
  max-width: 700px;
  margin: auto;
  font-style: italic;
}

footer {
  margin-top: 20px;
  font-size: 14px;
  color: #777;
}


/* Responsive */
@media (max-width: 600px) {
  .contact {
    flex-direction: column;
    gap: 10px;
  }

  .navbar {
    flex-direction: column;
    gap: 10px;
  }

  .nav-links a {
    margin: 0 10px;
  }
}


.center-image {
  text-align: center;
  margin: 20px 0;
}

.center-image img {
  width: 100%;        /* take full width of container */
  max-width: 700px;   /* match your content width */
  height: auto;       /* keep proportions */
  display: block;
  margin: 0 auto;
}


/* Project Page Layout */
.project-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 900px;
  margin: 40px auto;
  gap: 40px;
}

/* Reverse layout */
.project-row.reverse {
  flex-direction: row-reverse;
}

/* VERY IMPORTANT: equal spacing */
.project-image,
.project-text {
  flex: 1;
}

/* Center image inside its space */
.project-image {
  width: 250px;
  height: 250px;
  flex-shrink: 0; /* prevents shrinking */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden; /* IMPORTANT */
}

/* Image styling */
.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* fills box properly */
}

.project-text {
  max-width: 500px;
}

/* Text styling */
.project-text {
  text-align: left;
}

.project-text h3 {
  margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 700px) {
  .project-row {
    flex-direction: column;
    text-align: center;
  }

  .project-row.reverse {
    flex-direction: column;
  }
}

.project-row:hover {
  transform: translateY(-5px);
  transition: 0.3s;
}

.project-row,
.project-row * {
  text-decoration: none;
  color: inherit;
}


/* Existing Blog Styles (KEEPED) */
.blog-container {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.blog-card {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: 250px;              /* rectangle shape */
  margin: 0 auto;             /* center it */
  border-radius: 10px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}


.blog-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  z-index: 1;
}

/*Blogs STructure*/ 

/* Category + date on top of image */
.blog-overlay {
  position: absolute;
  top: 10px;
  left: 15px;
  color: white;
  font-size: 14px;
  z-index: 1;
  background: rgba(0,0,0,0.5);
  padding: 5px 10px;
  border-radius: 5px;
}

/* Blog text */
.blog-content {
  margin-top: 10px;
}

.blog-content h3 {
  margin-bottom: 8px;
}

.blog-content p {
  color: #444;
  line-height: 1.6;
}

.blog-card-wrapper {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}



.blog-content {
  padding-top: 10px;
  text-align: center;
}

.blog-container {
  max-width: 900px;
  margin: 40px auto;
  display: flex;
  flex-direction: column; /* forces vertical stacking */
  gap: 40px;
}

.achievements {
  display: flex;
  gap: 20px;
}

.achievements img {
  width: 50%;
  height: auto;
}

.course-row {
  display: flex;
  gap: 50px;
}

.course-row p {
  margin: 0;
}

.course-row {
  display: flex;
  justify-content: center; /* centers horizontally */
  gap: 50px;
  text-align: left; /* keeps text aligned nicely */
}

.course-row p {
  width: 250px;
}

.course-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
}
