/* -------------------- Global Styles -------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", sans-serif;
  line-height: 1.6;
  background: linear-gradient(270deg, #0f2027, #203a43, #2c5364);
  background-size: 600% 600%;
  animation: gradientShift 15s ease infinite;
  color: #f5f5f5;
  scroll-behavior: smooth;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* -------------------- Navbar -------------------- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  background: rgba(255, 255, 255, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.logo {
  display: flex;
  align-items: center;
  font-weight: bold;
  font-size: 1.5rem;
  color: #00ffe5;
}

.logo-img {
  width: 40px;
  height: 40px;
  margin-right: 10px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #00ffe5;
}

/* -------------------- Hero Section -------------------- */
.hero {
  text-align: center;
  padding: 6rem 2rem;
}

.hero h1 {
  font-size: 3.5rem;
  color: #00ffe5;
  text-shadow: 0 0 10px #00ffe5, 0 0 20px #00ffe5;
  margin-bottom: 1rem;
}

.highlight {
  color: #00ffaa;
  font-weight: bold;
}

.tagline {
  font-size: 1.25rem;
  margin: 1rem 0;
}

.btn {
  padding: 1rem 2.5rem;
  background: linear-gradient(to right, #00ffe5, #02e2cf);
  color: #000;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.4s ease-in-out;
  box-shadow: 0 5px 15px rgba(0, 255, 229, 0.4);
}

.btn:hover {
  background: linear-gradient(to right, #02e2cf, #00ffe5);
  transform: translateY(-3px) scale(1.05);
}

/* -------------------- Section Layout -------------------- */
.section {
  padding: 4rem 2rem;
  max-width: 1000px;
  margin: auto;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
}

/* -------------------- Profile Section -------------------- */
.profile {
  background: linear-gradient(270deg, #0f2027, #203a43, #2c5364);
  background-size: 600% 600%;
  animation: gradientShift 15s ease infinite;
  color: #f5f5f5;
  padding: 60px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-container {
  display: flex;
  flex-direction: row;
  gap: 40px;
  max-width: 1000px;
  flex-wrap: wrap;
  align-items: center;
}

.profile-img {
  width: 250px;
  border-radius: 50%;
  border: 4px solid #0077ff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.profile-info {
  max-width: 600px;
  color: #f5f5f5;
}

.profile-info h2 {
  font-size: 2em;
  margin-bottom: 10px;
  color: #00ffe5;
}

.profile-info p {
  color: #ccc;
}

.profile-info .btn {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background: #0077ff;
  color: white;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.3s;
}

.profile-info .btn:hover {
  background: #005ec4;
}

/* -------------------- Projects -------------------- */
.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s;
}

.project-card:hover {
  transform: translateY(-5px);
}

/* -------------------- Experience -------------------- */
.experience-grid {
  display: grid;
  gap: 2rem;
  padding: 1rem;
}

.experience-card {
  background-color: #ffffff10;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.experience-card:hover {
  transform: translateY(-5px);
}

/* -------------------- Certificates -------------------- */
.certificates {
  text-align: center;
  background: linear-gradient(270deg, #0f2027, #203a43, #2c5364);
  background-size: 600% 600%;
  animation: gradientShift 15s ease infinite;
  color: #f5f5f5;
}

.certificate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

.certificate-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.certificate-card:hover {
  transform: translateY(-5px);
}

.certificate-card img {
  max-width: 100%;
  border-radius: 8px;
  border: 2px solid #00ffe5;
  box-shadow: 0 0 10px rgba(0, 255, 229, 0.2);
  transition: transform 0.3s ease;
}

.certificate-card img:hover {
  transform: scale(1.03);
}

/* -------------------- Contact -------------------- */
.contact form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: auto;
}

input, textarea {
  padding: 1rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  background: rgba(255,255,255,0.1);
  color: #fff;
}

button {
  padding: 0.75rem;
  background: #00ffe5;
  color: #000;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.3s;
}

button:hover {
  background: #02e2cf;
}
/*----------------------Skills----------------------*/

.skills-section {
  padding: 2rem;
  overflow-x: hidden;
}

.skills-container.scrollable {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding: 1rem 0;
  scrollbar-width: thin;
  scrollbar-color: #888 transparent;
}

.skills-container::-webkit-scrollbar {
  height: 6px;
}

.skills-container::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

.skill {
  flex: 0 0 auto;
  width: 250px;
  background: #000;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.skill-icon {
  font-size: 2rem;
  color: #007bff;
  margin-bottom: 0.5rem;
  display: block;
}

.bar {
  width: 100%;
  height: 20px;
  background: #ddd;
  border-radius: 10px;
  margin-top: 0.5rem;
  position: relative;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: #007bff;
  border-radius: 10px 0 0 10px;
  text-align: right;
  font-size: 0.8rem;
  color: white;
  line-height: 20px;
  padding-right: 8px;
  box-sizing: border-box;
}


/* -------------------- Chatbot -------------------- */
.chatbot-section {
  padding: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-top: 1px solid #00ffe5;
  border-bottom: 1px solid #00ffe5;
}

.chatbox {
  max-width: 500px;
  margin: 20px auto;
  border: 1px solid #00ffe5;
  border-radius: 10px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
}

.chat-window {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 15px;
  padding-right: 10px;
}

.user-msg, .bot-msg {
  margin: 10px 0;
  padding: 12px;
  border-radius: 10px;
  max-width: 80%;
}

.user-msg {
  background: #00ffe5;
  color: #000;
  align-self: flex-end;
  text-align: right;
}

.bot-msg {
  background: #1e1e1e;
  border: 1px solid #00ffe5;
  color: #00ffe5;
  text-align: left;
}

.chat-input {
  display: flex;
  gap: 10px;
}

.chat-input input {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: none;
  outline: none;
  background: #f0f0f0;
  color: #000;
}

.chat-input button {
  background: #00ffe5;
  color: #000;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

.chat-input button:hover {
  background: #02e2cf;
}


/* Typing Indicator */
.typing-indicator {
  display: flex;
  gap: 6px;
  align-items: center;
  margin: 10px 0;
  padding: 10px 16px;
  background: #1e1e1e;
  border: 1px solid #00ffe5;
  border-radius: 10px;
  color: #00ffe5;
  max-width: fit-content;
}

.typing-indicator .dot {
  width: 8px;
  height: 8px;
  background-color: #00ffe5;
  border-radius: 50%;
  animation: bounce 1.2s infinite;
}

.dot:nth-child(2) {
  animation-delay: 0.2s;
}

.dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes bounce {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.6;
  }
  40% {
    transform: scale(1.2);
    opacity: 1;
  }
}

/* -------------------- Footer -------------------- */
footer {
  text-align: center;
  padding: 2rem;
  background: #000;
  color: #fff;
}

.socials a {
  margin: 0 1rem;
  color: #ccc;
  text-decoration: none;
  font-size: 1.25rem;
}

.socials a:hover {
  color: #00ffe5;
}

/* -------------------- Scroll Reveal -------------------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease;
}

.reveal-show {
  opacity: 1;
  transform: translateY(0);
}

/* -------------------- Mobile Responsive -------------------- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .profile-container {
    flex-direction: column;
    text-align: center;
  }

  .profile-img {
    width: 180px;
  }

  .profile-info h2 {
    font-size: 1.5em;
  }
}