* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background-color: #f0f4f8;
  color: #333;
  padding: 20px;
  font-family: 'Segoe UI', sans-serif;
  transition: background-color 0.3s, color 0.3s;
}

body.dark-mode {
  background-color: #1c1c1c;
  color: #f5f5f5;
}

body.dark-mode header,
body.dark-mode #about,
body.dark-mode .project-card,
body.dark-mode #resume,
body.dark-mode footer {
  background-color: #2e2e2e;
  color: #f5f5f5;
}

body.dark-mode .about-box{
  background-color: #222;
}

.profile-pic {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid white;
}

header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
  padding: 2rem;
  background-color: #0077cc;
  color: white;
  border-radius: 10px;
  margin-bottom: 2rem;
  text-align: center;
}

#about {
  background-color: #ffffff;
  padding: 3rem 1rem;
  border-radius: 10px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.about-box {
  background: #f0f4f8;
  padding: 1.5rem;
  margin: 1rem auto;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

#tabs {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

#tabs button {
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  background: #00aaff;
  color: white;
  cursor: pointer;
  transition: background 0.3s;
}

#tabs button:hover {
  background: #005f88;
}

#switch-tab {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

#switch-tab button {
  padding: 10px 20px;
  border: none;
  border-bottom: 5px solid #8e44ad;
  color: #2c2c2c;
  background-color: #fffaf5;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-bottom-color 0.3s ease;
}

#switch-tab button:hover {
  border-bottom: 5px solid #f39c12;
  background-color: #fff1d6;
  color: #5c3d00;
  font-family: 'Playfair Display', serif;
}

#project-title {
  text-align: center;
  margin-bottom: 16px;
  padding: 16px;
  font-family: 'Montserrat', sans-serif;
  width: 100%;
  background-color: #222;
  color: white;
  border-radius: 10px;
}

#projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.project-card {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
  background-color: #fffaf5;
}

.project-card h3 {
  margin-bottom: 10px;
  color: #00aaff;
}

.project-card a {
  display: inline-block;
  margin-top: auto;
  text-decoration: none;
  background: #00aaff;
  color: white;
  padding: 8px 16px;
  border-radius: 5px;
  text-align: center;
  font-weight: bold;
}

.project-card a:hover {
  background: #005f88;
  color : lightgray;
}

#resume {
  text-align: center;
  margin: 3rem 0;
  padding: 1rem;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#resume h2 {
  font-size: 2rem;
  color: #0077cc;
  margin-bottom: 1rem;
}

.download-btn {
  display: inline-block;
  padding: 12px 24px;
  background: #28a745;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.2rem;
  transition: background 0.3s;
}

.download-btn:hover {
  background: #218838;
}

#theme-toggle {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background-color: #00aaff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

#theme-toggle:hover {
  background-color: #005f88;
}



/* Social icon row */
.footer-content {
  display: flex;
  justify-content: center;   /* center horizontally */
  align-items: center;
  gap: 20px;                 /* spacing between icons */
  flex-wrap: nowrap;         /* force single row */
  padding: 10px 0;
  margin-top: 20px;
  overflow-x: auto;          /* allow side scroll on very small screens */
  scrollbar-width: none;     /* hide scrollbar (Firefox) */
}
.footer-content::-webkit-scrollbar {
  display: none;             /* hide scrollbar (Chrome/Safari/Edge) */
}

/* Icon styles */
.footer-icon {
  font-size: 28px;
  color: white;
  text-decoration: none;
  transition: transform 0.2s ease, color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;           /* keeps consistent spacing */
}

.footer-icon:hover {
  color: black;
  transform: scale(1.2);
}