:root {
  --bg-color: #f7f9fb;
  --text-color: #1f1f1f;
  --primary-color: #1a73e8;
  --header-bg: #0e1e2b;
  --section-bg: #ffffff;
  --title-color: white;
}

body.dark-mode {
  --bg-color: #0e1e2b;
  --text-color: #f7f9fb;
  --primary-color: #90cdf4;
  --header-bg: #1f2937;
  --section-bg: #1a1a1a;
  --title-color: #00bfff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  line-height: 1.8;
  background-color: var(--bg-color);
  color: var(--text-color);
  text-align: justify;
}

.container {
  width: 95%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

header {
  background-color: var(--header-bg);
  text-align: center;
  padding: 60px 20px;
}

.profile-pic-square {
  width: 140px;
  height: 180px;
  object-fit: contain;
  border: 4px solid white;
  border-radius: 12px;
  margin: 20px auto;
  display: block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

header p {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--title-color);
}

.contact-links a {
  display: inline-block;
  margin: 8px 10px;
  padding: 10px 15px;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s;
}

.contact-links a:hover {
  background: #0c50b6;
}

.contact-links img {
  vertical-align: middle;
  margin-right: 8px;
}

section h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 5px;
  color: var(--primary-color);
}

.skills ul,
.certifications ul {
  list-style-type: none;
  padding-left: 0;
}

.skills li,
.certifications li {
  margin-bottom: 10px;
}

.project {
  background: var(--section-bg);
  padding: 20px;
  margin-bottom: 20px;
  border-left: 4px solid var(--primary-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.project h3 {
  margin-bottom: 10px;
  font-size: 1.6rem;
}

.project p {
  margin-bottom: 10px;
}

.project a {
  margin-right: 15px;
  color: var(--primary-color);
  text-decoration: none;
}

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

footer {
  background: var(--header-bg);
  color: white;
  text-align: center;
  padding: 20px 0;
  font-size: 1rem;
}

.contact p {
  margin-bottom: 10px;
}

#scrollToTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 10px 15px;
  font-size: 20px;
  display: none;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  z-index: 1000;
}

#scrollToTopBtn:hover {
  background: #0c50b6;
}

#themeToggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  margin-left: 12px;
  cursor: pointer;
  color: var(--title-color);
}

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