* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #f8f9fa;
  color: #000000;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #222;
  color: #fff;
  padding: 15px 30px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-weight: 800;
  font-size: 1.5rem;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 20px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 600;
}

.nav-links a:hover {
  color: #00bcd4;
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Sections */
.section {
  padding: 80px 20px;
  text-align: center;
}

.hero {
  background: linear-gradient(to right, #00bcd4, #2196f3);
  color: white;
}

.hero .content h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.hero .content span {
  color: #ffe082;
}

.hero .btn {
  display: inline-block;
  margin-top: 20px;
  background: white;
  color: #2196f3;
  padding: 10px 20px;
  font-weight: 600;
  border-radius: 5px;
  text-decoration: none;
}

/* About Section (Dynamic + Full Width) */
.about {
  background: linear-gradient(135deg, #e0f7fa, #b2ebf2);
  color: #00363a;
  padding: 80px 0;
  width: 100%;
}

.about .container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.about h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.about p {
  font-size: 1.1rem;
  line-height: 1.6;
}


/* Experience Section (Dynamic + Full Width) */
.workexp {
  background: linear-gradient(135deg, #e0f7fa, #b2ebf2);
  color: #00363a;
  padding: 80px 0;
  width: 100%;
}

.workexp .container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.workexp h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.workexp h3 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.workexp p {
  font-size: 1.1rem;
  line-height: 1.6;
}


/* Projects */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.project-card {
  background-color: #f1f1f1;
  padding: 20px;
  border-radius: 8px;
  text-align: left;
}

.project-card a {
  text-decoration: none;
  color: #2196f3;
  font-weight: 600;
}

/* Skills */
.skill-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  list-style: none;
}

.skill-list li {
  background: #808080;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background-color 0.3s ease, color 0.3s ease;
  cursor: default;
}

.skill-list li:hover {
  background-color: #00bcd4;
  color: white;
}

/* Contact */
.contact a {
  color: #2196f3;
  text-decoration: none;
}

/* Footer */
footer {
  background: #222;
  color: white;
  text-align: center;
  padding: 20px;
}

/* Back to Top Button */
#backToTop {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  font-size: 1.5rem;
  background-color: #2196f3;
  color: white;
  border: none;
  border-radius: 50%;
  padding: 10px 15px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease;
}

#backToTop:hover {
  background-color: #1976d2;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    display: none;
    background-color: #222;
    width: 100%;
    text-align: center;
    position: absolute;
    top: 60px;
    left: 0;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    margin: 10px 0;
  }

  .menu-toggle {
    display: block;
  }

  .hero .content h1 {
    font-size: 2rem;
  }
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 600px;
  margin: auto;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.contact-form button.btn {
  background-color: #2196f3;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.contact-form button.btn:hover {
  background-color: #1976d2;
}

/* Light/Dark Mode Toggle */
body.dark-mode {
  background-color: #121212;
  color: #f1f1f1;
}

body.dark-mode .section {
  background-color: #1e1e1e;
}

body.dark-mode .navbar {
  background-color: #000;
}

body.dark-mode .nav-links a:hover {
  color: #90caf9;
}

body.dark-mode .project-card {
  background-color: #2a2a2a;
}

body.dark-mode .skill-list li:hover {
  background-color: #1976d2;
  color: #fff;
}

body.dark-mode footer {
  background-color: #000;
}

/* Toggle Button (moon/sun icon) */
#toggleTheme {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
}

/* Responsive Toggle */
@media (max-width: 768px) {
  #toggleTheme {
    margin-top: 10px;
  }
}

