/* Light Theme (Default) */
:root {
  --bg-color: white;
  --text-color: #333;
  --accent-color: #4CAF50;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: var(--bg-color);
  color: var(--text-color);
  scroll-behavior: smooth;
}

header {
  overflow-x: auto;
  background: var(--bg-color);
  text-align: center;
  padding: 1rem;
  border-bottom: 2px solid #ddd;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.profile-pic {
  width: 80px;
  height: 80px;
  border-radius: 50%;
}

nav {
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 0.5rem;
}

nav a {
  text-decoration: none;
  color: var(--accent-color);
  font-weight: bold;
  transition: 0.3s;
}

nav a:hover {
  color: #388E3C;
}

#dark-mode-toggle {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}

/* Sections */
section {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1rem;
  border-radius: 8px;
}

h2 {
  text-align: left;
  color: var(--accent-color);
  border-bottom: 2px solid #ddd;
  padding-bottom: 0.5rem;
}

h3 {
  text-align: left;
  color: var(--accent-color);
}

/* Grid Layout */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

/* Certification Items (Styled like text but clickable) */
.grid-item {
  background: var(--bg-color);
  padding: 10px;
  border-radius: 5px;
  text-align: left;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-decoration: none;  /* Remove underline */
  color: inherit;         /* Make link color same as text */
  font-weight: bold;
}

/* Hover Effect */
.grid-item:hover {
  transform: scale(1.05);
}

/* Prevent color change after clicking */
.grid-item:visited {
  color: inherit;
}


/* Remove default styles for anchor links inside projects */
.project-link {
  text-decoration: none; /* Remove the underline */
  color: inherit;         /* Keep the color as it is from the surrounding content */
}

/* Projects */
.project {
  display: block;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 8px;
  background: var(--bg-color);
  transition: transform 0.3s;
  color: inherit; /* Ensures text color stays consistent */
}

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



/* Ensures the project link doesn't change color when visited */
.project-link:visited .project {
  color: inherit;
}

/* On hover, the project link doesn't change text color */
.project-link:hover .project {
  color: inherit;
}


/* Contact Section */
#contact {
  padding: 2rem;
  text-align: left;
}

#contact h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

#contact p {
  font-size: 1.1rem;
}

#contact a {
  color: green; /* Ensure link text is green */
  text-decoration: none; /* Remove underline */
}

#contact a:hover {
  text-decoration: none; /* No underline on hover */
  color: green; /* Keep it green on hover */
}

#contact a:visited {
  color: green; /* Keep the color green even after visiting */
}


/* Dark Mode */
.dark-mode {
  --bg-color: #1e1e1e;
  --text-color: white;
  --accent-color: #4CAF50;
}

footer {
  text-align: center;
  padding: 1rem;
  background: var(--bg-color);
}
