/* Global Styles */
body {
  font-family: 'Poppins', sans-serif;
  background-color: #f5f5f5;
  margin: 0;
  padding: 0;
}

/* Navbar */
nav {
  background-color: #222;
  padding: 15px;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  color: #fff;
  font-size: 1.5em;
  font-weight: 600;
}

.nav-links a {
  color: #fff;
  margin: 0 12px;
  text-decoration: none;
  font-weight: 500;
}

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

/* Page Content */
.content {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0px 2px 8px rgba(0,0,0,0.1);
}

/* Floating Chatbot */
.floating-chat {
  position: fixed;
  bottom: 20px;
  right: 20px;
  max-width: 360px;
  width: 100%;
  background: #fff;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 9999;
}

/* Chat Box */
#chat-box {
  height: 300px;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fafafa;
  scroll-behavior: smooth;
  margin-bottom: 10px;
}

.bot-message {
  background-color: #e3f2fd;
  padding: 10px;
  border-radius: 15px;
  margin: 8px 0;
  width: fit-content;
  max-width: 80%;
}

.user-message {
  background-color: #c8e6c9;
  padding: 10px;
  border-radius: 15px;
  margin: 8px 0;
  margin-left: auto;
  text-align: right;
  width: fit-content;
  max-width: 80%;
}

.timestamp {
  display: block;
  font-size: 0.7em;
  color: #777;
  margin-top: 5px;
}

.bot-typing {
  background-color: #fff3cd;
  padding: 10px;
  border-radius: 15px;
  margin: 8px 0;
  width: fit-content;
  max-width: 80%;
  font-style: italic;
}

/* Chat Input */
.input-area {
  display: flex;
  align-items: center;
}

#chat-input {
  flex-grow: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.chat-container button {
  margin-left: 10px;
  padding: 10px 20px;
  background-color: #222;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.chat-container button:hover {
  background-color: #555;
}

.spinner {
  display: none;
  margin-left: 10px;
  width: 16px;
  height: 16px;
  border: 2px solid #ccc;
  border-top: 2px solid #333;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* About Page */
.about {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 20px;
  line-height: 1.8;
  font-size: 1rem;
  color: #333;
}

.about h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5em;
  color: #004aad;
}

.about h2 {
  font-size: 1.4rem;
  margin-top: 2em;
  color: #333;
  border-bottom: 2px solid #eee;
  padding-bottom: 5px;
}

.about ul {
  list-style-type: disc;
  padding-left: 20px;
}

.about li {
  margin-bottom: 10px;
}

.about a {
  color: #004aad;
  text-decoration: none;
  font-weight: 500;
}

.about a:hover {
  text-decoration: underline;
}

/* Education Section */
.section {
  margin: 40px auto;
  max-width: 900px;
  padding: 20px;
}

.education-list {
  list-style-type: none;
  padding-left: 0;
}

.education-list li {
  background: #ffffff;
  margin-bottom: 20px;
  padding: 20px;
  border-left: 5px solid #2f80ed;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.edu-institute {
  font-weight: 500;
  color: #555;
}

.edu-dates {
  font-style: italic;
  font-size: 0.9em;
  color: #888;
}

/* Experience Section */
.experience-entry {
  margin-bottom: 40px;
  padding: 20px;
  background-color: #fff;
  border-left: 5px solid #27ae60;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.experience-entry h3 {
  margin: 0 0 10px;
  font-size: 1.2em;
  color: #333;
}

.company {
  font-weight: 500;
  color: #555;
  margin: 0;
}

.dates {
  font-style: italic;
  font-size: 0.9em;
  color: #888;
  margin-bottom: 10px;
}

.exp-details {
  margin-top: 10px;
  padding-left: 20px;
}

.exp-details li {
  margin-bottom: 8px;
}

/* Projects */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.project-card {
  background-color: #fff;
  padding: 20px;
  border-left: 5px solid #004aad;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-card h3 {
  margin-top: 0;
  color: #222;
}

.project-card p {
  font-size: 0.95em;
  margin-bottom: 10px;
  color: #444;
}

.btn {
  display: inline-block;
  margin-right: 10px;
  margin-top: 10px;
  padding: 6px 14px;
  background-color: #004aad;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9em;
}

.btn:hover {
  background-color: #003278;
}

/* Resume Download */
.btn-download {
  display: inline-block;
  margin-top: 1rem;
  padding: 10px 20px;
  background-color: #007BFF;
  color: white;
  text-decoration: none;
  border-radius: 5px;
}

.btn-download:hover {
  background-color: #0056b3;
}

/* Contact Page */
.contact-section {
  max-width: 700px;
  margin: auto;
  padding: 40px;
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.contact-form label {
  display: block;
  margin-top: 15px;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: inherit;
}

.contact-form button {
  margin-top: 20px;
  padding: 12px 25px;
  background-color: #007BFF;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.contact-form button:hover {
  background-color: #0056b3;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .chat-container,
  .content {
    margin: 20px;
    padding: 15px;
    max-width: 95%;
  }

  .floating-chat {
    right: 10px;
    left: 10px;
    max-width: unset;
  }

  #chat-box {
    height: 250px;
  }

  .nav-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links a {
    display: block;
    margin: 5px 0;
  }
}
/* Floating Chat Icon */
#chat-toggle {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 50px;
  height: 50px;
  background-color: #007bff;
  color: white;
  border-radius: 50%;
  text-align: center;
  font-size: 24px;
  line-height: 50px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  z-index: 9999;
}

#chat-container {
  position: fixed;
  bottom: 90px;
  right: 25px;
  width: 350px;
  max-height: 500px;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 9998;
  overflow: hidden;
}
/* PDF Modal Fix + Animation */
.pdf-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdf-modal.show {
  opacity: 1;
  visibility: visible;
}

.pdf-modal-content {
  position: relative;
  width: 90%;
  height: 90%;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.pdf-modal iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.pdf-close {
  position: absolute;
  top: 12px;
  right: 20px;
  font-size: 32px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  z-index: 10001;
}

.pdf-close:hover {
  color: red;
}
.highlight {
  color: #401ee9;         
  font-weight: bold;
  background-color: #e4e5fc; 
  padding: 2px 6px;
  border-radius: 4px;
}
