:root {
  --primary: #1e293b;
  --secondary: #f1f5f9;
  --accent: #334879;
  --bg-dark: #0f172a;
  --text-light: #f8fafc;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: Arial, sans-serif;
  background-color: var(--secondary);
  color: var(--primary);
  line-height: 1.6;
  padding: 1rem;
  transition: background 0.3s, color 0.3s;
}
body.dark-mode {
  background-color: var(--bg-dark);
  color: var(--text-light);
}
nav {
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}
body.dark-mode nav {
  background: #1e293b;
}
nav ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  max-width: 1000px;
  margin: auto;
  padding: 1rem;
  gap: 1rem;
  justify-content: center;
}
nav a {
  text-decoration: none;
  color: var(--accent);
  font-weight: bold;
}
header, section {
  max-width: 1000px;
  margin: auto;
  padding: 1.5rem;
}
header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  width: 40%;
  color: var(--accent);
}
header h1 span {
  display: inline-block;
  border-right: 2px solid var(--accent);
  white-space: nowrap;
  overflow: hidden;
  animation: typing 3s steps(25, end), blink 0.75s step-end infinite;
}
@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}
@keyframes blink {
  50% { border-color: transparent }
}
header p {
  font-size: 1.1rem;
}
.social-links a {
  margin-right: 1rem;
  color: var(--accent);
  text-decoration: none;
}
section {
  margin-top: 2rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
body.dark-mode section {
  background: #1e293b;
}
section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.5rem;
}
ul {
  padding-left: 1.25rem;
}
ul li {
  margin-bottom: 0.5rem;
}
.toggle-btn {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 4px;
  z-index: 1000;
}
.hidden {
  display: none;
}
.clickable {
  cursor: pointer;
  font-weight: bold;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
@media (max-width: 600px) {
  header h1 {
    font-size: 2rem;
  }
  .social-links a, nav ul {
    display: block;
    text-align: center;
  }
}
.project-image {
  width: 100%;
  max-width: 500px;
  border-radius: 6px;
  margin-top: 0.5rem;
}

.certificates>li>a {
  color: #5baaf9;
}