body {
  font-family: serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(to bottom right, #e3f2fd, #bbdefb);
  transition: background-color 0.5s, color 0.5s;
}
p{
  font-size: 25px;
  font-family: 'Times New Roman', Times, serif;
  font-style: italic;
}
.dark {
  background-color: #121212;
  color: #c877f1;
}

.section {
  max-width: 900px;
  margin: auto;
  padding: 50px 20px;
}

.profile-img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
}
.titlepic{
  border-radius: 100%;
}
.subtitle {
  font-size: 1.2rem;
  color: #444;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.card {
  background: linear-gradient(135deg, #ffffff, #e3f2fd);
  padding: 25px;
  width: 220px;
  border-radius: 15px;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
  position: relative;
  overflow: hidden;
  z-index: 0;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #bbdefb 0%, transparent 70%);
  transform: scale(0);
  transition: transform 0.5s ease;
  z-index: -1; /* ✅ Keep it behind the text */
}

.card:hover::before {
  transform: scale(3);
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 16px 35px rgba(33, 150, 243, 0.3);
  background: linear-gradient(135deg, #e1f5fe, #bbdefb);
  color: #0d47a1;
}

.dark .card {
  background: linear-gradient(135deg, #1e1e1e, #2c2c2c);
  color: white;
}

.dark .card:hover {
  background: linear-gradient(135deg, #333333, #444444);
  box-shadow: 0 16px 35px rgba(200, 119, 241, 0.3);
  color: #c877f1;
}


.toggle-container {
  text-align: right;
  padding: 10px 20px;
}

button {
  background-color: #2196f3;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

button:hover {
  background-color: #1565c0;
}

/* Contact form */
.contact-form {
  max-width: 600px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input, .contact-form textarea {
  padding: 12px;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.contact-form button {
  background-color: #2196f3;
}

.success-message {
  color: green;
  font-weight: bold;
}
footer{
  font-weight: bold;
  text-align: center;
  color: gray;
}