:root {
  --bg-color: #fafafa;
  --text-color: #222222;
  --primary-color: #89a7e0;
  --code-bg: #f4f4f4;
}

/* GLOBAL STYLES */
body {
  margin: 0 auto;
  background-color: var(--bg-color);
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text-color);
  transition: 0.3s;
}

html.dark {
  --bg-color: #222222;
  --text-color: #fafafa;
  --primary-color: #89a7e0;
  --code-bg: #2e2e2e;
}

/* HEADER */
header {
  padding: 1rem;
}

nav {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav ul {
  margin: 0 1rem 0 0;
  padding: 0;
  list-style-type: none;
  position: absolute;
  right: 0;
}

nav li {
  display: inline-block;
  padding-left: 1rem;
  font-size: 1rem;
}

nav a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s, text-decoration 0.3s;
}

nav a:hover {
  text-decoration: underline;
  color: var(--primary-color);
}

nav h1 {
  font-size: 1rem;
  font-weight: normal;
}

#theme-toggle {
  background-color: var(--text-color);
  border: none;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  text-align: bottom;
  cursor: pointer;
  transition: 0.3s;
}

#theme-toggle:hover {
  background-color: var(--primary-color);
}

/* HERO SECTION */
.header-container {
  height: 80vh;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.header-container h1 {
  font-size: 3rem;
}

.header-container span {
  color: var(--primary-color);
}

/* BLOG */
.blog-container {
  margin: 2rem auto;
  padding: 0 1rem;
  line-height: 1.6;
}

.blog-container header {
  padding: 0;
}

.blog-container header p {
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.blog-container article {
  max-width: 800px;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--text-color);
  padding-bottom: 2rem;
}

.blog-container h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.blog-container p {
  margin-bottom: 1rem;
}

.blog-container code {
  background: var(--code-bg);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.95rem;
  transition: 0.3s;
}

.blog-container footer {
  margin-top: 1rem;
  font-size: 0.9rem;
}

/* FOOTER */
footer {
  position: relative;
  bottom: 0;
  padding: 1rem 0;
}

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

.contact ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.contact li {
  display: inline-block;
  padding: 0 1rem;
}

.contact a {
  text-decoration: none;
  color: #222222;
  transition: color 0.3s;
}

.contact a:hover {
  color: var(--primary-color);
}

/* ICONS */

footer ion-icon {
  font-size: 2rem;
  color: var(--text-color);
  transition: 0.3s;
}

footer ion-icon:hover {
  color: var(--primary-color);
}

header ion-icon {
  font-size: 1.1rem;
  color: var(--bg-color);
  transition: 0.3s;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  .header-container h1 {
    font-size: 2.5rem;
  }
}
