/* ---------------- Base Styles ---------------- */
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #fff;
  color: #222;
  line-height: 1.6;
  text-align: center;
}

a {
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #0077b6;
}

/* ---------------- Header ---------------- */
.profile-header {
  margin-top: 30px;
  text-align: center;
}

.header-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.profile-pic {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.name {
  font-weight: 700;
  font-size: 2rem;
}

/* ---------------- Navigation ---------------- */
nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  padding: 15px 0;
  margin-top: 20px;
}

nav a {
  color: #444;
  font-weight: 500;
}

nav a.active {
  font-weight: 700;
  color: #000;
}

/* ---------------- Main Content ---------------- */
.about,
.resume-content,
.projects-content,
.contact-content {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
  font-size: 1.05rem;
  line-height: 1.7;
  text-align: center;
}

/* ---------------- Projects Grid (clean + bigger cards) ---------------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); /* wider min size */
  gap: 24px;                        /* more space between cards */
  max-width: 1100px;                /* grid width */
  margin: 50px auto;
  padding: 0 20px;
}

.project-card {
  background: #fff;
  border-radius: 16px;              /* smoother corners */
  padding: 28px;                    /* more breathing room */
  min-height: 380px;                /* taller cards */
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.18);
}

.project-card h2 {
  margin-top: 0;
  font-size: 1.4rem;
}

.project-card p {
  font-size: 1rem;
  line-height: 1.6;
  flex-grow: 1; /* lets description take up space */
}

.project-card a {
  display: inline-block;
  margin-top: 15px;
  font-weight: 600;
  color: #0077b6;
  text-decoration: none;
}

.project-card a:hover {
  text-decoration: underline;
}

.dashboard-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.dashboard-item img.chart {
  width: 120px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.dashboard-item .index-info {
  flex-grow: 1;
  margin-left: 15px;
  text-align: left;
}

.dashboard-item .index-name {
  font-weight: 600;
  margin-bottom: 5px;
}

.dashboard-item .prediction {
  font-size: 1.5rem;
  margin-left: 10px;
}

.prediction.up {
  color: green;
}

.prediction.down {
  color: red;
}

/* ---------------- Resume Link ---------------- */
.resume-link {
  font-weight: 600;
  color: #0077b6;
}

.resume-link:hover {
  text-decoration: underline;
}

/* ---------------- Email Link ---------------- */
.email-link {
  font-weight: 600;
  color: #0077b6;
}

.email-link:hover {
  text-decoration: underline;
}

/* ---------------- Social Links ---------------- */
.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 30px 0;
}

.social-links .icon {
  width: 35px;
  height: 35px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-links .icon:hover {
  transform: scale(1.15);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* ---------------- Footer ---------------- */
footer {
  padding: 20px 0;
  border-top: 1px solid #eee;
  font-size: 0.9rem;
  color: #666;
  background-color: #fafafa;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 600px) {
  .name {
    font-size: 1.6rem;
  }

  nav {
    flex-direction: column;
    gap: 10px;
  }

  .profile-pic {
    width: 80px;
    height: 80px;
  }
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}

.project-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  text-align: center;
}

.project-card h2 {
  margin-top: 0;
}

.project-card a {
  display: inline-block;
  margin-top: 10px;
  font-weight: 600;
  color: #0077b6;
  text-decoration: none;
}

.project-card a:hover {
  text-decoration: underline;
}

/* ---------------- GitHub Button ---------------- */
.github-btn {
  display: block;               /* full width for centering */
  margin: 20px auto 0 auto;     /* center horizontally */
  padding: 10px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background-color: rgb(195, 190, 190);    
  border-radius: 8px;
  text-decoration: none;
  text-align: center;           /* ensure text is centered */
  width: fit-content;           /* shrink wrap around text */
  transition: background-color 0.25s ease, transform 0.2s ease;
}

.github-btn:hover {
  background-color: #000;
  transform: translateY(-2px);
}

  