@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;700&display=swap');

/* Theme variables */
:root {
  --bg: hsl(222.2 84% 4.9%);
  --text: #fff;
  --primary: #3f9bff;
  --secondary: #c9c9c9;
  --accent: #283f57;
  --btn-bg: #3f9bff;
  --btn-text: #fff;
  --btn-border: rgb(35, 48, 69);
}

body.light-mode {
  --bg: #f5f7fa;
  --text: #222;
  --primary: #0077B5;
  --secondary: #444;
  --accent: #3f9bff;
  --btn-bg: #0077B5;
  --btn-text: #fff;
  --btn-border: #3f9bff;
}
body {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  background-color: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
}

.container {
  max-width: 600px;
  text-align: left;
  padding: 20px;
}

.hi {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--primary);
  margin: 0;
}

.name {
  font-size: 4rem;
  font-weight: 700;
  margin: 0.2rem 0;
}

.name span {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: var(--accent);
}

.demo {
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0px 0px 10px 0px;
  color: var(--secondary);
}

.demo span {
  font-weight: bold;
  text-decoration: underline;
}

.job {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--secondary);
  margin: 0px 0px 5px 0px;
}

.icon {
  font-size: 35px;
  color: var(--text);
  padding: 5px 30px;
}

.linkedin:hover{
  color: var(--primary);
  transition: 0.2s ease-out;
}

.github:hover{
  color: rgb(156, 0, 156);
  transition: 0.3s ease-in-out;
}

.mail:hover{
  color: rgb(178, 0, 0);
  transition: 0.2s ease-out;
}

.footer{
    display: flex;
    justify-content: center;
    align-items: center;
}

.connect {
  font-weight: bold;
  color: var(--text);
}

.buttons {
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn {
  height: 50px;
  width: 170px;
  cursor: pointer;
  font-size: 18px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.contact:hover {
  transform: scale(1.06);
}

.contact{
  background-color: var(--btn-bg);
  color: var(--btn-text);
}

.projects{
  background: none;
  border: 2px var(--btn-border) solid;
  color: var(--btn-text);
}

.projects:hover{
    background-color: var(--btn-bg);
    border: none;
    color: #222;
    transform: scale(1.06);
    transition: 0.2s ease-in;
}

.theme-toggle {
  background: none;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.theme-toggle:hover {
  background: var(--primary);
  color: var(--btn-text);
}

.light-mode .projects {
  color: #000;
  letter-spacing: inherit;
  word-spacing: inherit;
}