/* General Styles */
body {
  font-family: 'Manrope', sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #393BB2, #E2CBFF);
  color: #e0e0e0;
  position: relative;
}

html,
body {
  overflow-x: hidden;
  /* Prevent horizontal scrolling */
}

.container {
  background: rgba(0, 0, 0, 0.8);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  max-width: 800px;
  margin: 2rem auto;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Center content horizontally */
}

/* Header Styles */
header {
  text-align: center;
  /* Center header text */
  margin-bottom: 2rem;
}

header h1 {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
}

.subtitle {
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  color: #b0b0b0;
  margin: 0.5rem 0;
}

#location-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.5rem;
}

.location-icon {
  width: 20px;
  /* Adjust the width as needed */
  height: 20px;
  /* Adjust the height as needed */
  margin-right: 10px;
  /* Space between the icon and text */
}

#location {
  font-size: 1.2rem;
  color: #b0b0b0;
  text-align: center;
  /* Center location text */
}

.social-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 1rem;
}

.button {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  background-color: #393BB2;
  color: #fff;
  border-radius: 20px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.button:hover {
  background-color: #2b2b8a;
}

.icon {
  width: 20px;
  height: 20px;
  margin-right: 10px;
}

nav ul {
  list-style: none;
  padding: 0;
  text-align: center;
  /* Center list items */
}

nav ul li {
  display: inline-block;
  /* Change to inline-block for centering */
  margin: 0 10px;
}

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

nav ul li a:hover {
  text-decoration: underline;
}

/* Profile Image Styles */
.profile-image {
  display: block;
  margin: 0 auto 1rem;
  /* Center profile image */
  border-radius: 50%;
  width: 150px;
  /* Adjust the width as needed */
  height: 150px;
  /* Adjust the height as needed */
  object-fit: cover;
  background: transparent;
  /* Make background transparent */
}

/* Section Styles */
section {
  margin-bottom: 2rem;
  width: 100%;
  /* Ensure sections take full width */
}

section h2 {
  font-family: 'Montserrat', sans-serif;
  margin-top: 0;
  text-align: left;
  /* Align h2 elements to the left */
  padding-left: 20px;
  /* Add padding to align with other content */
}

/* Skills List Styles */
.skills-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
  /* Center text */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.skills-list li {
  background: #393BB2;
  color: #fff;
  padding: 10px 20px;
  margin: 5px;
  border-radius: 20px;
  font-size: 1rem;
  transition: background 0.3s ease;
}

.skills-list li:hover {
  background: #2b2b8a;
}

/* Project Styles */
.project {
  margin-bottom: 1rem;
}

.project h3 {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
}

.tech-bubbles {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
}

.tech-bubble {
  background: #393BB2;
  color: #fff;
  padding: 5px 8px;
  border-radius: 15px;
  font-size: 0.6rem;
  transition: background 0.3s ease;
}

.tech-bubble:hover {
  background: #2b2b8a;
}

/* Footer Styles */
footer {
  text-align: center;
  padding: 1rem 0;
}

.footer-icons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 1rem;
}

.footer-icon {
  width: 30px;
  height: 30px;
}

/* Footer Styles */
tag {
  text-align: center;
  padding: 1rem 0;
}

.tag-icons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 1rem;
}

.tag-icon {
  width: 20px;
  height: 20px;
}

/* Pulsing Circle Background */
.pulsing-circle {
  position: fixed;
  /* Use fixed positioning to keep it centered on the screen */
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: pulse 2s infinite;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.pulsing-circle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: ripple 4s infinite;
}

@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0.7;
  }

  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

@keyframes ripple {
  0% {
    width: 300px;
    height: 300px;
    opacity: 0.4;
  }

  100% {
    width: 2000px;
    height: 2000px;
    opacity: 0;
  }
}

/* Additional Styles for New Elements */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.intro {
  text-align: center;
  /* Center intro text */
}

.moveUpAni {
  animation: moveUp 1s ease-in-out;
}

@keyframes moveUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.text-5xl {
  font-size: 3rem;
}

.text-2xl {
  font-size: 1.5rem;
}

.text-gray-400 {
  color: #b0b0b0;
}

.rounded {
  border-radius: 0.375rem;
}

.w-full {
  width: 100%;
}

.w-40 {
  width: 10rem;
}

.pt-4 {
  padding-top: 1rem;
}

.ml-2 {
  margin-left: 0.5rem;
}

.ml-3 {
  margin-left: 0.75rem;
}

.h-7 {
  height: 1.75rem;
}

.w-7 {
  width: 1.75rem;
}

.h-6 {
  height: 1.5rem;
}

.w-6 {
  width: 1.5rem;
}

.border {
  border-width: 1px;
}

.bg-transparent {
  background-color: transparent;
}

.text-fafafa {
  color: #fafafa;
}

.rounded-7px {
  border-radius: 7px;
}

.hover-border-fafafa:hover {
  border-color: #fafafa;
}

.pt-2 {
  padding-top: 0.5rem;
}

.cursor-pointer {
  cursor: pointer;
}

.mt-10 {
  margin-top: 2.5rem;
}

.relative {
  position: relative;
}

.inline-flex {
  display: inline-flex;
}

.h-10 {
  height: 2.5rem;
}

.min-w-36 {
  min-width: 9rem;
}

.overflow-hidden {
  overflow: hidden;
}

.padding-1px {
  padding: 1px;
}

.ml-neg-1px {
  margin-left: -1px;
}

.focus\:outline-none:focus {
  outline: none;
}

.focus\:ring-2:focus {
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.5);
}

.focus\:ring-slate-400:focus {
  box-shadow: 0 0 0 2px #94a3b8;
}

.focus\:ring-offset-2:focus {
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.5), 0 0 0 2px #94a3b8;
}

.focus\:ring-offset-slate-50:focus {
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.5), 0 0 0 2px #f8fafc;
}

.animate-\[spin_2s_linear_infinite\] {
  animation: spin 2s linear infinite;
}

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

  100% {
    transform: rotate(360deg);
  }
}

.bg-slate-950 {
  background-color: #0f172a;
}

.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.text-sm {
  font-size: 0.875rem;
}

.font-medium {
  font-weight: 500;
}

.text-white {
  color: #ffffff;
}

.backdrop-blur-3xl {
  backdrop-filter: blur(64px);
}

/* Fade effect */
.fade {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.fade.show {
  opacity: 1;
}

/* Timeline styling */
.timeline-container {
  position: relative;
  min-height: 200px;
  /* Ensure container has height */
}

.timeline-section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: none;
}

.timeline-section.show {
  display: block;
}

/* Additional styling for buttons and timeline items */
.timeline-buttons {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  padding: 5px;
  border: 2px solid #475cf9;
  border-radius: 10px;
}

.timeline-button {
  background-color: transparent;
  color: #475cf9;
  border: none;
  padding: 10px 20px;
  margin: 0 10px;
  cursor: pointer;
  border-radius: 5px;
  position: relative;
  z-index: 1;
  transition: color 0.3s;
  font-size: 16px;
}

.timeline-button:hover {
  color: #0056b3;
}

.timeline-button.active {
  color: white;
}

.moving-rectangle {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: #475cf9;
  border-radius: 5px;
  transition: left 0.3s, width 0.3s;
  z-index: 0;
}

.timeline-item {
  margin-bottom: 20px;
}

.logo-bubble {
  width: 30px;
  height: 30px;
  vertical-align: middle;
  margin-right: 10px;
}

.date {
  font-size: 0.7em;
  color: #9b9a9a;
  margin-left: 10px;
}

/* Aligning the profile image to the left */
.profile-image {
  display: block;
  flex-shrink: 0;
  margin: 0 auto 1rem;
  height: calc(150px + 6vw);
  width: calc(150px + 6vw);
  border: calc(8px + 0.2vw) solid transparent;
  background-origin: border-box;
  background-clip: content-box, border-box;
  background-size: cover;
  box-sizing: border-box;
  box-shadow: 0 0 5px 5px rgba(82, 117, 214, 0.5);
  border-radius: 50%;
  background-image: var(--img-url), linear-gradient(to bottom right, #ff3cac, #562b7c, #2b86c5);
}


/* --- New Project Card Layout Styles --- */

#projects {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.project-card {
  background-color: #1e1e2f;
  border-radius: 10px;
  overflow: hidden;
  max-width: 300px;
  width: 100%;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

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

.project-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.project-content {
  padding: 1rem;
}

.project-content h3 {
  margin-top: 0.5rem;
  margin-bottom: 0.3rem;
  font-size: 1.2rem;
  color: #ffffff;
}

.project-description {
  color: #cccccc;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.more-projects-card {
  background-color: #1e1e2f;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  max-width: 300px;
  width: 100%;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, border-color 0.3s ease;
  color: white;
  text-decoration: none;
}

.more-projects-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.4);
}

.more-projects-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  color: white;
}

.more-projects-card .arrow {
  font-size: 2rem;
  margin-top: 10px;
  display: block;
  color: white;
}

.tech-bubbles {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 0.5rem;
}

.tech-bubble {
  background: #393BB2;
  color: #fff;
  padding: 5px 8px;
  border-radius: 15px;
  font-size: 0.7rem;
  transition: background 0.3s ease;
}

.tech-bubble:hover {
  background: #2b2b8a;
}

.project-button {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 6px 12px;
  background-color: #393BB2;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.85rem;
  transition: background-color 0.3s ease;
}

.project-button:hover {
  background-color: #2b2b8a;
}

/* -------- Responsive Mobile Optimizations -------- */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
    margin: 1rem auto;
    padding-bottom: 5rem;
  }

  header h1 {
    font-size: 1.5rem;
  }

  .profile-image {
    width: 120px;
    height: 120px;
  }

  .social-buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .button {
    width: 100%;
    justify-content: center;
  }

  section h1,
  section h2 {
    text-align: center;
    padding-left: 0;
  }

  .skills-list {
    flex-direction: column;
    align-items: center;
  }

  #projects {
    flex-direction: column;
    align-items: center;
  }

  .project-card {
    max-width: 100%;
  }

  .timeline-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .timeline-button {
    width: 100%;
    text-align: center;
    border-radius: 8px;
    padding: 12px;
    font-size: 1rem;
  }

  .timeline-container {
    padding-bottom: 3rem;
  }

  .footer-icons {
    flex-direction: column;
    gap: 0.5rem;
  }

  .moving-rectangle {
    display: none;
    /* Hide highlight block on mobile */
  }
}

/* Ensure padding/margin is included in total width/height */
* {
  box-sizing: border-box;
}





/* --- Chatbot: Floating Button + Popup --- */

/* Floating Toggle Button */
#chatbot-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #393BB2;
  color: white;
  padding: 12px 20px;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  font-weight: bold;
  z-index: 9999;
  transition: background 0.3s ease;
}

#chatbot-toggle:hover {
  background-color: #2b2b8a;
}

/* Chatbot Popup */
#chatbot-popup {
  position: fixed;
  bottom: 75px;
  right: 20px;
  width: 320px;
  background: rgba(30, 30, 47, 0.95);
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 10000;
}

#chatbot-popup.hidden {
  display: none;
}

#chatbot-header {
  background-color: #393BB2;
  color: white;
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#chatbot-header h3 {
  margin: 0;
  font-size: 1rem;
}

#chatbot-close {
  cursor: pointer;
  font-size: 1.2rem;
}

/* Chat Area */
#chatbot-log {
  padding: 10px;
  height: 250px;
  overflow-y: auto;
  font-size: 0.9rem;
  color: #fff;
  background-color: #2b2b8a;
}

#chatbot-log div {
  margin-bottom: 8px;
}

#chatbot-log .user {
  color: #e0e0e0;
}

#chatbot-log .bot {
  color: #a2d2ff;
}

/* Input Area */
#chatbot-input-container {
  display: flex;
  padding: 10px;
  background-color: #1e1e2f;
  border-top: 1px solid #393BB2;
}

#chatbot-input {
  flex: 1;
  padding: 8px;
  border: none;
  border-radius: 5px;
  margin-right: 5px;
}

#chatbot-send {
  background-color: #475cf9;
  border: none;
  color: white;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
}

#chatbot-send:hover {
  background-color: #2b2b8a;
}

/* Responsive Chatbot */
@media (max-width: 500px) {
  #chatbot-popup {
    width: 90%;
    right: 5%;
    bottom: 85px;
  }

  #chatbot-toggle {
    bottom: 20px;
    right: 20px;
    font-size: 0.9rem;
    padding: 10px 16px;
  }
}