/* Base Styles */
body {
  margin: 0;
  padding: 0;
  font-family: 'Cinzel', serif;
  color: var(--text-color);
  background-color: var(--background-color);
  transition: background-color 0.5s, color 0.5s;
}

/* Particle Background */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: -1;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(0, 0, 0, 0.7);
}

.logo img {
  width: 50px;
  height: 50px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--link-hover-color);
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  text-align: center;
  color: #fff;
}

.hero h1 {
  font-size: 3rem;
  margin: 0;
  position: relative;
  display: inline-block;
}

.hero .name-text {
  display: inline-block;
}

.hero p {
  font-size: 1.5rem;
}

.hero .btn {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: var(--link-color);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 1s;
}

.hero .btn:hover {
  background: var(--link-hover-color);
}

/* About Section */
.about {
  padding: 4rem 2rem;
  background: #222;
  color: #ccc;
  text-align: center;
}

.about img {
  max-width: 10%;
  height: auto;
  border-radius: 10px;
}

/* Experience Section */
.experience {
  padding: 4rem 2rem;
}

.experience-item {
  background: #333;
  color: #fff;
  margin: 1rem 0;
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
}

/* Projects Section */
.projects {
  padding: 4rem 2rem;
}

.project-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 1rem;
}

.project-item {
  background: #444;
  color: #fff;
  margin: 1rem 0;
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  flex: 1 1 30%;
  max-width: 30%;
}

.project-item img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

/* Skills Section */
.skills {
  padding: 4rem 0;
  background: #222;
  color: #ccc;
}

.skills-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.skill {
  flex: 1 1 45%;
  margin-bottom: 2rem;
  text-align: center;
}

.progress-bar {
  background: #333;
  border-radius: 5px;
  overflow: hidden;
}

.progress {
  background: #f39c12;
  height: 1rem;
}

/* Contact Section */
.contact {
  padding: 4rem 2rem;
}

.contact-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form .form-group {
  display: flex;
  flex-direction: column;
}

contact-form label {
  margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}

.contact-form button {
  padding: 0.5rem 1rem;
  background: var(--link-color);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-form button:hover {
  background: var(--link-hover-color);
}

/* Footer */
footer {
  padding: 2rem;
  background: #333;
  color: #ccc;
  text-align: center;
}

.social-icons a {
  margin: 0 0.5rem;
}

.social-icons img {
  width: 30px;
  height: 30px;
  filter: invert(1);
  transition: filter 0.3s;
}

.social-icons img:hover {
  filter: invert(0.5);
}

/* Dark Mode */
:root {
  --background-color: #eb3737;
  --text-color: #000;
  --link-color: #007bff;
  --link-hover-color: #0056b3;
}

[data-theme="dark"] {
  --background-color: #222;
  --text-color: #ccc;
  --link-color: #f39c12;
  --link-hover-color: #e67e22;
}

/* Dark Mode Toggle Switch */
.switch {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-block;
  width: 34px;
  height: 20px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 12px;
  width: 12px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked+.slider {
  background-color: #2196F3;
}

input:checked+.slider:before {
  transform: translateX(14px);
}

/* Additional Styles for Animation */
.animated-text span {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: animateText 0.5s forwards;
}

@keyframes animateText {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}