/* General Body and Font */
body {
  margin: 0;
  font-family: "Comic Neue", cursive;
  background: #f4f7f8;
  color: #333;
  line-height: 1.6;
}
p{
  font-size:1.2rem;
}

/* Container max-width */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Section Titles */
h2 {
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #222;
  position: relative;
}

/* Underline effect for section headings */
h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: #007bff; /* Bootstrap Primary color */
  margin: 0.5rem auto 1.5rem;
  border-radius: 2px;
}

/* Section backgrounds and padding */
section {
  padding: 60px 0;
}

/* Home Section Styling */
#home {
  background: linear-gradient(135deg, #007bff 0%, #668790 100%);
  color: white;
  padding: 120px 0;
  text-align: center;
}

#home h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

#home p {
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

/* Buttons */
.btn-primary {
  background-color: #007bff;
  border: none;
  padding: 12px 28px;
  font-size: 1.1rem;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #0056b3;
}

/* About Section */
#about p {
  max-width: 650px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: #555;
}

/* Skills */
.skills-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding-top: 15px;
}

.skill-badge {
  background-color: #007bff;
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: background-color 0.3s ease;
}

.skill-badge:hover {
  background-color: #0056b3;
}

.skill-card {
  width: 100%;
  height: 100%;
}
/* Projects */
.project-item {
  background: white;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
  text-align: left;
}

.project-item:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.project-item h3 {
  margin-bottom: 0.5rem;
  color: #007bff;
}

.project-item p {
  font-size: 1rem;
  color: #444;
}

/* Experience */
.experience-list,
.education-list {
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
}

.experience-item,
.education-item {
  background: white;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.experience-item:hover,
.education-item:hover {
  box-shadow: 0 7px 25px rgba(0, 0, 0, 0.12);
}

.experience-item h5,
.education-item h5 {
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: #007bff;
}

.experience-item small,
.education-item small {
  font-style: italic;
  color: #666;
}

.experience-item p,
.education-item p {
  margin-top: 0.5rem;
  color: #555;
}

/* Contact Form */
#contact form {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.12);
  text-align: left;
}

#contact form label {
  font-weight: 600;
  color: #333;
}

#contact form input,
#contact form textarea {
  border: 1.5px solid #ccc;
  border-radius: 6px;
  padding: 10px;
  width: 100%;
  font-size: 1rem;
  margin-top: 6px;
  margin-bottom: 18px;
  transition: border-color 0.3s ease;
}

#contact form input:focus,
#contact form textarea:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 8px rgba(0, 123, 255, 0.3);
}

/* Form response message */
#formResponse {
  font-weight: 600;
  font-size: 1.1rem;
}

/* Footer */
footer {
  background: #222;
  color: #eee;
  text-align: center;
  padding: 15px 10px;
  font-size: 0.9rem;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  #home h1 {
    font-size: 2.4rem;
  }
  .skills-list {
    justify-content: center;
  }
}

.nav-link:hover {
  color: #0d6efd;
}
.navbar-brand {
  font-size: 30px;
  font-weight: 700;
}

/*for particle.js*/
#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none; /* So clicks pass through particles */
  z-index: 0;
}

/* social media links */
.social-links p {
  margin: 0.3rem 0;
  font-size: 1rem;
}

.social-links a {
  color: #007bff;
  text-decoration: none;
}

.social-links a:hover {
  text-decoration: underline;
}
#about a {
  color: #007bff;
  text-decoration: none;
}

#about a:hover {
  text-decoration: underline;
}

.justify-text {
  text-align: justify;
  line-height: 1.8;
}

/* For typewriter effect*/
#typewriter {
  border-right: 2px solid black; /* cursor */
  padding-right: 5px;
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
  font-family: monospace;
  font-weight: 600;
}

/* Custom spacing for nav items */
.navbar-nav .nav-item {
  margin-left: 1rem;
}

.navbar-nav .nav-item:first-child {
  margin-left: 0;
}

.navbar-nav .nav-link {
  padding: 0.5rem 0.75rem;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: #0d6efd !important;
}

.navbar-nav .nav-link i {
  margin-right: 0.5rem;
  /* padding-left:1rem !important */
}

.navbar-brand {
  font-weight: 700;
  font-size: 2.5rem;
}

/* Resume button styling */
.btn-outline-primary {
  border-color: #0d6efd;
  color: #0d6efd;
}

.btn-outline-primary:hover {
  background-color: #0d6efd;
  border-color: #0d6efd;
}








/* Dark mode base styles */
body.dark-mode {
  background-color: #1e1e1e;
  color: white;
   transition: background-color 0.5s ease, color 0.5s ease;
}

body{
  transition: background-color 0.5s ease, color 0.5s ease;
}


#darkModeToggle i{
  transition:opacity 0.5s ease;
}

#darkModeToggle i.changing{
  opacity: 0;
}

/* Ensuring cards, navbar, footer, etc. also change */
body.dark-mode .card,
body.dark-mode #intro,
body.dark-mode .navbar,
body.dark-mode .footer,
body.dark-mode .container,
body.dark-mode .main-content,
body.dark-mode .sidebar {
  background-color: #1e1e1e !important;
  color: white !important;
  border-color: #333 !important;
  transition:background-color 0.5s ease,color 0.5s ease, border-color 0.5s ease;
}

.card,
#intro,
.navbar,
.footer,
.container,
.main-content,
.sidebar {
  transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease;
}



body.dark-mode #about .headingg,
body.dark-mode #skills .headingg,
body.dark-mode #projects .headingg,
body.dark-mode #experience .headingg,
body.dark-mode #education .headingg,
body.dark-mode #contact .headingg {
  color: #90caf9;
  transition: color 0.5s ease;
}

#about .headingg,
#skills .headingg,
#projects .headingg,
#experience .headingg,
#education .headingg,
#contact .headingg {
  transition: color 0.5s ease;
}




a{
  transition: color 0.5s ease;
}
body.dark-mode a {
  color: #90caf9;
}


p{
  transition: color 0.5s ease;
}
body.dark-mode p {
  color: white;
}


#education .education-item{
  background-color: white;
  color:#1e1e1e;
  transition: background-color 0.5s ease, color 0.5s ease;
}

body.dark-mode #education .education-item {
  background-color: #1e1e1e !important;
  color: white !important;
   transition: background-color 0.5s ease, color 0.5s ease;
}


#about p{
  color:#1e1e1e;
  transition: color 0.5s ease;
}

body.dark-mode #about p {
  color: white;
  transition: color 0.5s ease;
}


#education .education-item small.text-muted {
  color: #6c757d; /* typical muted text color */
  transition: color 0.5s ease;
}

body.dark-mode #education .education-item small.text-muted {
  color: #90caf9;
  transition: color 0.5s ease;
}


#experience .timeline-item small.text-muted {
  color: #6c757d;
  transition: color 0.5s ease;
}

body.dark-mode #experience .timeline-item small.text-muted {
  color: #90caf9;
  transition: color 0.5s ease;
}

#contact label {
  color: black; /* or your default label color */
  transition: color 0.5s ease;
}

body.dark-mode #contact label {
  color: white;
  transition: color 0.5s ease;
}

#contact form {
  background-color: white; /* or your default form background */
  transition: background-color 0.5s ease;
}



body.dark-mode #contact form {
  background-color: #1e1e1e !important;
}

/*to change the color of navbar toggler*/

body.dark-mode .navbar-toggler{
  border:1px solid black;
}
body.dark-mode .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.8)' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.navbar-toggler,
.navbar-toggler-icon {
  transition: all 0.5s ease;
}

#experience small.text-muted{
  transition: color 0.5s ease;
}
body.dark-mode #experience small.text-muted a{
  color:#007bff;
  transition: color 0.5s ease;
}
body.dark-mode #experience small.text-muted{
  color:#90caf9 !important;
  transition: color 0.5s ease;
}

#education .education-item a{
  transition: color 0.5s ease;
}
body.dark-mode #education .education-item a{
  color:#90caf9 !important;
  transition: color 0.5s ease;
}

body.dark-mode #education .city-name{
  color:#90caf9;
  transition: color 0.5s ease;
}
#education .city-name{
  transition: color 0.5s ease;
}

.education-item .d-flex small.text-muted{
  transition: color 0.5s ease;
}
body.dark-mode .education-item .d-flex small.text-muted {
  color: #90caf9 !important;
  transition: color 0.5s ease;
}

.fa-moon{
  transition: color 0.5s ease;
}
body.dark-mode .fa-moon{
  color: #f1c40f !important;
  transition: color 0.5s ease;
}

/* Dark mode navbar brand styling */
body.dark-mode .navbar-brand {
  color:#90caf9 !important;
  transition: color 0.5s ease;
}

.navbar-brand {
  transition: color 0.5s ease;
}

/* Dark mode navbar brand hover effect */
body.dark-mode .navbar-brand:hover {
  color: #037cdf !important;
}

.card {
  display: flex;
  flex-direction: column;
}

.card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-body .btn {
  margin-top: auto;
}

body.dark-mode .skill-card img[alt="GitHub"] {
  filter: invert(1);
  transition: filter 0.5s ease;
}

.skill-card .d-flex img {
  margin: 0 8px;
}


/*footer*/
.simple-footer {
  background-color: #f8f9fa;
  color: #6c757d;
  padding: 30px 0;
  margin-top: 50px;
  border-top: 1px solid #dee2e6;
  transition: all 0.5s ease;
}

.simple-footer .footer-content p {
  font-size: 0.9rem;
  margin: 0;
  transition: color 0.5s ease;
}

/* Dark mode styles */
body.dark-mode .simple-footer {
  background-color: #1e1e1e;
  color: #bdc3c7;
  border-top: 1px solid #444;
  transition: all 0.5s ease;
}

body.dark-mode .simple-footer .footer-content p {
  color: #bdc3c7;
}

body.dark-mode .simple-footer .text-danger {
  color: #e74c3c !important;
}

/* avoiding particles to hover over the profile image */
#intro img {
  position: relative;
  z-index: 10;
}

#particles-js {
  z-index: -1;
}



/* Light mode: Black borders for skill cards and project cards */
.skill-card {
  border: 2px solid #1e1e1e !important; /* Black border for light mode */
  transition: border-color 0.5s ease;
}

.card {
  border: 2px solid #000000 !important; /* Black border for project cards in light mode */
  transition: border-color 0.5s ease;
}

/* Dark mode: Keep borders dark/gray for skill cards and project cards */
body.dark-mode .skill-card {
  border: 2px solid #edc2c2 !important; /* Dark gray border for dark mode */
}

body.dark-mode .card {
  border: 2px solid #edc2c2 !important; /* Dark gray border for project cards in dark mode */
}