body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  background: #f4f6f8;
  color: #333;
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
  scroll-behavior: smooth;
}
body.dark {
  background: #1e1e1e;
  color: #eee;
}
header {
  background: #002b5c;
  color: #fff;
  text-align: center;
  padding: 4rem 1rem 4rem;
  position: relative;
}
header img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid #fff;
  margin-bottom: 1rem;
  transition: transform 0.3s, box-shadow 0.3s;
  object-fit: cover;
}
header img:hover {
  transform: scale(1.05);
  transition: transform 0.3s;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}
header h1 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: 1px;
}
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #002b5c;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem;
  z-index: 999;
}
nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s;
}
nav a:hover {
  color: #4da6ff;
}
#views {
  position: fixed;
  right: 20px;
  background: #002b5c;
  color: #fff;
  padding: 5px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  cursor: default;
  transition: transform 0.2s ease-in-out;
}

#views:hover {
  transform: scale(1.1);
}
section {
  max-width: 900px;
  margin: 2rem auto;
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  animation: fadeIn 1s ease-in;
}
body.dark section {
  background: #2b2b2b;
}
h2 {
  color: #002b5c;
  border-bottom: 2px solid #eee;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}
body.dark h2 {
  color: #4da6ff;
  border-color: #444;
}
.contact p,
.work p,
.education p {
  margin: 0.3rem 0;
}
.job,
.edu {
  margin-bottom: 1.5rem;
}
.date {
  font-style: italic;
  color: #777;
}
body.dark .date {
  color: #bbb;
}
.skills {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}
.skills span {
  display: inline-block;
  background: #002b5c;
  color: #fff;
  padding: 3px 8px;
  border-radius: 5px;
  margin: 2px;
  font-size: 0.8rem;
}
body.dark .skills span {
  background: #4da6ff;
  color: #000;
}
button {
  background: #002b5c;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 5px;
  transition: background 0.3s;
}
button:hover {
  background: #004080;
}
footer {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  padding: 1.5rem;
  background: #002b5c;
  color: #fff;
  margin-top: 2rem;
  gap: 50px;
}
/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}
.modal img {
  max-width: 90%;
  max-height: 80%;
  border: 5px solid #fff;
  border-radius: 10px;
}
.close-btn {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 2rem;
  color: red;
  cursor: pointer;
  font-size: 5vh;
}
/* links to sections */

#social-links {
  display: flex;
  font-size: 4vh;
}
#social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-radius: 50%;
  margin-left: 5px;
}
#social-links a:hover {
  background: #2a2122;
  box-shadow: inset 0 0 1em rgba(255, 217, 0, 0.692), 0 0 1em red;
}
a img {
  width: 35px;
  height: 35px;
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Responsive */
@media (max-width: 768px) {
  nav {
    flex-wrap: wrap;
  }
  header h1 {
    font-size: 1.5rem;
  }
  section {
    margin: 1rem;
    padding: 1rem;
  }
  button {
    font-size: 0.9rem;
    padding: 6px 10px;
  }
  #social-links {
    flex-wrap: wrap;
    padding: auto;
  }
}
