/* Global Styles */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #f7f9fc;
  color: #333;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Navbar */
.navbar {
  background: #1e1e2f;
  color: white;
  padding: 1.5rem 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  margin: auto;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 2px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  color: #ff7f50;
  text-decoration: underline;
}

/* Hero Section */
.hero {
  background: linear-gradient(to right, #667eea, #764ba2);
  color: white;
  padding: 6rem 0;
  text-align: center;
  border-bottom: 2px solid #f7f9fc;
}

.hero h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.btn {
  background: #ff7f50;
  color: white;
  padding: 0.85rem 2rem;
  border: none;
  border-radius: 50px;
  font-weight: bold;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.btn:hover {
  background: #e67e22;
  cursor: pointer;
}

/* Form Section */
.form-section, .dashboard-section, .portfolio-section {
  padding: 5rem 0;
  text-align: center;
  background: #fff;
  border-top: 2px solid #f1f1f1;
}

.form-container form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 480px;
  margin: 2rem auto;
  padding: 2rem;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.form-container input, .form-container textarea {
  padding: 0.85rem;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-container input:focus, .form-container textarea:focus {
  border-color: #764ba2;
  outline: none;
}

.form-container button {
  background: #1e1e2f;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: bold;
  border: none;
  cursor: pointer;
}

.form-container button:hover {
  background: #ff7f50;
}

/* Portfolio Items */
.portfolio-item {
  background: white;
  padding: 2rem;
  margin: 1.5rem auto;
  border-radius: 12px;
  max-width: 700px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Dashboard Section */
.dashboard-container {
  padding: 4rem 2rem;
  background-color: #fff;
  text-align: center;
  border-top: 2px solid #f1f1f1;
}

.dashboard-container h2 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  color: #333;
}

.stat-item {
  margin: 2rem auto;
  max-width: 600px;
  background: #f9f9f9;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.progress-bar {
  width: 100%;
  background-color: #e0e0e0;
  border-radius: 30px;
  height: 30px;
  margin-top: 1rem;
}

.progress {
  height: 100%;
  text-align: center;
  line-height: 30px;
  color: #fff;
  background-color: #4caf50;
  border-radius: 30px;
  font-weight: bold;
  transition: width 0.5s ease-in-out;
}

/* Dark Mode */
.dark-mode {
  background-color: #121212;
  color: #ffffff;
}

.dark-mode .navbar {
  background-color: #1e1e1e;
}

.dark-mode .container,
.dark-mode .form-container,
.dark-mode .portfolio-item {
  background-color: #1f1f1f;
  color: #fff;
}

.dark-mode input,
.dark-mode textarea {
  background-color: #333;
  color: #fff;
  border: 1px solid #666;
}

.dark-mode .btn {
  background-color: #333;
  color: #fff;
  border: 1px solid #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar .container, .form-container, .portfolio-item {
    flex-direction: column;
    text-align: center;
  }

  .nav-links {
    flex-direction: column;
    gap: 1rem;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .btn {
    width: 100%;
  }

  .form-container form {
    max-width: 100%;
  }

  .portfolio-item {
    max-width: 90%;
  }

  .dashboard-container h2 {
    font-size: 1.75rem;
  }

  .stat-item {
    padding: 1.5rem;
  }
}

/* Public Profile Page */
#profileInfo {
  background: #f9f9f9;
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  text-align: left;
}

#profileInfo p {
  margin: 0.5rem 0;
  font-size: 1.1rem;
}

#certList {
  list-style: disc inside;
  text-align: left;
  margin-bottom: 2rem;
  padding-left: 1rem;
}

#certList li {
  margin-bottom: 0.5rem;
  background-color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

#expForm {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

#expForm input,
#expForm textarea {
  padding: 0.85rem;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 1rem;
  transition: all 0.3s ease;
}

#expForm input:focus,
#expForm textarea:focus {
  border-color: #764ba2;
  outline: none;
}

#expForm button {
  background-color: #1e1e2f;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: bold;
  border: none;
  cursor: pointer;
}

#expForm button:hover {
  background-color: #ff7f50;
}

#expList .portfolio-item {
  background: #fff;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  text-align: left;
}

#expList h4 {
  margin: 0 0 0.5rem 0;
  color: #333;
}

#expList p {
  margin: 0.25rem 0;
}
