/* Global Styles */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column; /* Stack header, main, and footer vertically */
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  background-color: #ffffff; /* Default light mode */
  color: #1a1a1a; /* Default light mode text */
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-mode {
  background-color: #1a1a1a;
  color: #ffffff;
}

header {
  background: #333;
  color: #fff;
  padding: 1rem 0;
  text-align: center;
}

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

nav ul li {
  display: inline;
  margin: 0 10px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
}

/* Main Section */
main {
  flex: 1; /* Main content takes up available space */
  padding: 20px;
}

/* Sticky Footer */
footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 1rem 0;
  width: 100%;
  position: relative;
  bottom: 0; /* Ensure it's positioned at the bottom */
}

body.dark-mode footer {
  background-color: #1f1f1f;
}

/* About Page Section */
#about {
  padding: 50px 20px;
  text-align: center;
  box-sizing: border-box; /* Include padding in width calculations */
}

#about h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 3rem;
  margin-bottom: 20px;
  color: #00ffcc;
}

body:not(.dark-mode) #about h1 {
  color: #1a1a1a; /* Light mode heading color */
}

#about p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 30px;
}

.tech-stack h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  margin-bottom: 20px;
  color: #00ffcc;
}

body:not(.dark-mode) .tech-stack h2 {
  color: #1a1a1a; /* Light mode heading color */
}

.tech-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.tech-icons img {
  width: 60px;
  height: 60px;
  transition: transform 0.3s ease;
}

.tech-icons img:hover {
  transform: scale(1.2);
}

/* Dark Mode Toggle Button */
#dark-mode-toggle {
  background-color: transparent;
  border: 2px solid #00ffcc;
  color: #00ffcc;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: none;
}

#dark-mode-toggle:hover {
  background-color: rgba(0, 255, 204, 0.1);
  border-color: #00ccaa;
  color: #00ccaa;
  transform: scale(1.05);
}

#dark-mode-toggle:active {
  transform: scale(0.95);
}

body.dark-mode #dark-mode-toggle {
  border-color: #00ffcc;
  color: #00ffcc;
}

body.dark-mode #dark-mode-toggle:hover {
  background-color: rgba(0, 255, 204, 0.1);
  border-color: #00ccaa;
  color: #00ccaa;
}
