/* Base styles */
:root {
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--gray-800);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
}

h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--gray-900);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--gray-900);
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: var(--gray-600);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--gray-900);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-800);
  margin: 4px 0;
  transition: 0.3s;
}

/* Profile Picture */
.profile-picture {
  width: 200px;
  height: 200px;
  margin: 0 auto 2rem;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #eff6ff, #eef2ff);
  padding-top: 4rem;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.hero .accent {
  color: var(--primary);
}

.hero .subtitle {
  font-size: 1.5rem;
  color: var(--gray-600);
  margin-bottom: 1rem;
}

.hero .description {
  color: var(--gray-600);
  margin-bottom: 2rem;
  font-size: 1.125rem;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gray-400);
  animation: bounce 2s infinite;
}

/* Education & Experience Timeline */
.education,
.experience {
  padding: 5rem 0;
  background: var(--gray-50);
}

.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: var(--primary);
}

.timeline-item {
  margin-bottom: 3rem;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: var(--primary);
  border-radius: 50%;
}

.timeline-content {
  width: calc(50% - 30px);
  padding: 1.5rem;
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: auto;
}

.timeline-content h3 {
  color: var(--gray-900);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.timeline-content h4 {
  color: var(--gray-700);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.timeline-date {
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 1rem;
}

.timeline-details {
  list-style-type: disc;
  margin-left: 1.5rem;
  margin-top: 1rem;
  color: var(--gray-600);
}

.timeline-details li {
  margin-bottom: 0.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-secondary:hover {
  background: rgba(79, 70, 229, 0.1);
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* About Section */
.about {
  padding: 5rem 0;
  
  background: white;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-image img {
  width: 100%;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.features {
  margin-top: 2rem;
}

.feature {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.feature-icon {
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary);
  padding: 0.75rem;
  border-radius: 9999px;
}

/* Skills Section */
.skills {
  padding: 5rem 0;
  background: var(--gray-50);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.skill-card {
  background: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.skill-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.skill-bar {
  height: 0.5rem;
  background: var(--gray-200);
  border-radius: 9999px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: var(--primary);
  border-radius: 9999px;
  transition: width 1s ease-in-out;
}

/* Projects Section */
.projects {
  padding: 5rem 0;
  background: white;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background: white;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

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

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-content {
  padding: 1.5rem;
}

.project-content h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.project-tags span {
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
}

.project-links {
  display: flex;
  gap: 1rem;
}

.project-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-600);
  text-decoration: none;
  transition: color 0.3s;
}

.project-links a:hover {
  color: var(--gray-900);
}

/* Resume Section Styles */
.resume {
  padding: 5rem 0;
  background: #ffffff;
}

.resume-content {
  max-width: 800px;
  margin: 0 auto;
  background: #f9fafb;
  padding: 2.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.resume-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid #e5e7eb;
}

.resume-header h3 {
  font-size: 1.75rem;
  color: #1f2937;
  margin-bottom: 1rem;
}

.resume-header p {
  color: #6b7280;
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

.resume-section {
  margin-bottom: 2.5rem;
}

.resume-section h3 {
  color: #4f46e5;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.resume-section h3 svg {
  color: #4f46e5;
}

.resume-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.resume-list li {
  margin-bottom: 1rem;
  padding-left: 1.75rem;
  position: relative;
  color: #4b5563;
  font-size: 1.05rem;
}

.resume-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #4f46e5;
  font-weight: bold;
}

.resume-download {
  text-align: center;
  margin-top: 3rem;
}

.resume-download .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.1rem;
  padding: 1rem 2rem;
  margin-bottom: 1rem;
  background: #4f46e5;
  color: white;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.resume-download .btn:hover {
  background: #4338ca;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.resume-download .btn svg {
  transition: transform 0.3s ease;
}

.resume-download .btn:hover svg {
  transform: translateY(2px);
}

.resume-format {
  color: #6b7280;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .resume-content {
    padding: 1.5rem;
    margin: 0 1rem;
  }

  .resume-header h3 {
    font-size: 1.5rem;
  }

  .resume-header p {
    font-size: 1rem;
  }

  .resume-section h3 {
    font-size: 1.15rem;
  }

  .resume-list li {
    font-size: 1rem;
  }

  .resume-download .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Contact Section */
.contact {
  padding: 5rem 0;
  background: var(--gray-50);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.contact-details {
  margin-top: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-icon {
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary);
  padding: 0.75rem;
  border-radius: 9999px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  color: var(--gray-700);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  padding: 0.75rem;
  border: 1px solid var(--gray-200);
  border-radius: 0.5rem;
  transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

/* Footer */
.footer {
  background: var(--gray-800);
  color: white;
  padding: 2rem 0;
  text-align: center;
}

/* Animations */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

/* Media Queries */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: 0;
  }

  .timeline-item::before {
    left: 0;
  }

  .timeline-content {
    width: calc(100% - 30px);
    margin-left: 30px;
  }

  .timeline-item:nth-child(odd) .timeline-content {
    margin-left: 30px;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}
/* ================= FLOATING AI CHATBOT ================= */

.floating-ai-chat {

  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 9999;

}

.ai-button {

  display: flex;
  align-items: center;
  gap: 14px;

  background: linear-gradient(
    135deg,
    #2563eb,
    #06b6d4
  );

  color: white;

  padding: 16px 22px;

  border-radius: 18px;

  cursor: pointer;

  box-shadow: 0 10px 30px rgba(0,0,0,0.25);

  transition: 0.3s ease;

  font-weight: 600;

  font-size: 18px;

}

.ai-button:hover {

  transform: translateY(-4px);

}

.ai-icon {

  width: 45px;
  height: 45px;

  background: rgba(255,255,255,0.2);

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 22px;

}

/* ================= CHAT POPUP ================= */

.chat-popup {

  position: fixed;

  bottom: 110px;
  right: 25px;

  width: 350px;
  height: 500px;

  background: white;

  border-radius: 18px;

  overflow: hidden;

  box-shadow: 0 15px 40px rgba(0,0,0,0.25);

  display: none;

  flex-direction: column;

  z-index: 9999;

}

.chat-header {

  background: #2563eb;

  color: white;

  padding: 16px;

  display: flex;
  justify-content: space-between;
  align-items: center;

}

.chat-header h3 {

  margin: 0;

}

#closePopup {

  cursor: pointer;

}

.chat-body {

  flex: 1;

  padding: 15px;

  overflow-y: auto;

  background: #f9fafb;

  display: flex;
  flex-direction: column;
  gap: 12px;

}

.bot-msg,
.user-msg {

  padding: 12px;

  border-radius: 12px;

  max-width: 80%;

  line-height: 1.5;

  font-size: 14px;

}

.bot-msg {

  background: #e5e7eb;

  align-self: flex-start;

}

.user-msg {

  background: #2563eb;

  color: white;

  align-self: flex-end;

}

.chat-footer {

  display: flex;

  padding: 12px;

  border-top: 1px solid #ddd;

}

.chat-footer input {

  flex: 1;

  padding: 10px;

  border-radius: 8px;

  border: 1px solid #ccc;

  outline: none;

}

.chat-footer button {

  margin-left: 10px;

  padding: 10px 16px;

  border: none;

  background: #2563eb;

  color: white;

  border-radius: 8px;

  cursor: pointer;

}

@media(max-width: 480px) {

  .chat-popup {

    width: 92vw;
    height: 75vh;

    right: 10px;

  }

  .ai-button {

    font-size: 16px;
    padding: 14px 18px;

  }

}