/* General Styles */
body {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
  transition: background-color 0.3s, color 0.3s;
}

/* Light Mode Styles */
body.light-mode {
  background-color: #f4f4f4;
  color: #333;
}

header, section, footer {
  transition: background-color 0.3s;
}

header {
  background-color: #007BFF;
  color: #fff;
  text-align: center;
  padding: 1em;
  position: relative;
}

#profile-img {
  border-radius: 50%;
  width: 100px;
  height: 100px;
  object-fit: cover;
  margin-bottom: 10px;
  transition: transform 0.3s;
}

#profile-img:hover {
  transform: scale(1.1);
}

header h1 {
  margin: 0;
  color: #fff;
}

section {
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  color: #555;
  background-color: #fff;
}

section h2 {
  color: #007BFF;
  position: relative;
  display: inline-block;
  transition: color 0.3s;
}

section h2::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background-color: #007BFF;
  position: absolute;
  bottom: 0;
  left: 0;
  transition: width 0.3s ease;
}

section h2:hover::after {
  width: 100%;
}

h1, h2 {
  color: #333;
}

h2 {
  color: #007BFF;
}

a {
  color: #007BFF;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul {
  list-style: none;
  padding: 0;
}

li {
  margin-bottom: 10px;
}

footer {
  text-align: center;
  padding: 1em;
  background-color: #007BFF;
  color: #fff;
}

footer a {
  color: #fff;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.social-icons {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.social-icons a {
  margin: 0 10px;
  display: inline-block;
}

.social-icons i {
  font-size: 30px;
  color: #fff;
  transition: transform 0.3s;
}

.social-icons a:hover i {
  transform: scale(1.2);
}

.dark-mode-button {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
}

/* Personal Links Section Styles */
.personal-links 
  margin-top: 20px;
}

.personal-links a {
  color: #007BFF;
  text-decoration: none;
  margin: 0 15px;
}

.personal-links a:hover {
  text-decoration: underline;
}

/* Projects Section Styles */
.projects {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.project-card {
    width: calc(33.33% - 20px);
    margin-bottom: 20px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    background-color: #fff;
}

.project-card:hover {
    transform: scale(1.05);
}

.project-img {
    width: 100%;
    height: auto; /* Set auto height for flexibility */
    object-fit: cover;
}

.project-info {
    padding: 15px;
}

.project-info h3 {
    color: #007BFF;
    margin-bottom: 10px;
}

.project-info p {
    color: #555;
    margin-bottom: 10px;
}

.project-link {
    display: inline-block;
    padding: 8px 15px;
    background-color: #007BFF;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.project-link:hover {
    background-color: #0056b3;
    text-decoration: none;
}

@media (max-width: 768px) {
    .projects {
        flex-direction: column;
    }

    .project-card {
        width: 100%;
    }
}

.projects h3 {
  color: #007BFF;
  position: relative;
  display: inline-block;
  transition: color 0.3s;
}

.projects h3::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background-color: #007BFF;
  position: absolute;
  bottom: 0;
  left: 0;
  transition: width 0.3s ease;
}

.projects h3:hover::after {
  width: 100%;
}

/* Dark Mode Styles */
body.dark-mode {
  background-color: #333;
  color: #ddd;
}

body.dark-mode section {
  color: #bbb;
  background-color: #444;
}

body.dark-mode .project-card {
  background-color: #444;
}

body.dark-mode .project-info h3 {
  color: #007BFF;
}

body.dark-mode .project-info p,
body.dark-mode .project-link {
  color: #bbb;
}

body.dark-mode .project-link:hover {
  text-decoration: none;
}

/* Mobile Navbar Styles */
.mobile-navbar {
    display: none;
}

@media (max-width: 768px) {
    .navbar {
        display: none;
    }

    .mobile-navbar {
        display: block;
        text-align: center;
        padding: 10px;
        background-color: #007BFF;
        color: #fff;
    }

    .mobile-navbar ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile-navbar li {
        display: inline-block;
        margin-right: 10px;
    }

    .mobile-navbar a {
        text-decoration: none;
        color: #fff;
        font-size: 14px;
        font-weight: bold;
    }

    .mobile-navbar a:hover {
        text-decoration: underline;
    }
}

/* Navbar Styles */
.navbar {
  background-color: #007BFF;
  color: #fff;
  padding: 10px 0;
  text-align: center;
}

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

.navbar li {
  display: inline-block;
  margin-right: 20px;
  transition: transform 0.3s;
}

.navbar a {
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  font-size: 16px;
  transition: color 0.3s;
}

.navbar li:hover {
  transform: scale(1.1);
}

/* Add a little extra space above the first section */
body:not(.light-mode) section:first-of-type {
  margin-top: 60px;
}
