/* Modern Professional Portfolio Theme */
:root {
  --primary-color: #2563eb;      /* Modern blue */
  --secondary-color: #3b82f6;    /* Lighter blue */
  --accent-color: #60a5fa;       /* Light blue for accents */
  --text-primary: #1f2937;       /* Dark gray for text */
  --text-secondary: #4b5563;     /* Medium gray for secondary text */
  --background-light: #ffffff;   /* White background */
  --background-card: #f9fafb;    /* Light gray for cards */
  --background-dark: #f3f4f6;    /* Slightly darker for sections */
  --border-color: #e5e7eb;       /* Light gray for borders */
  --success-color: #10b981;      /* Green for success messages */
  --error-color: #ef4444;        /* Red for error messages */
}

body {
  background-color: var(--background-light);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
}

/* Section Styles */
section {
  background-color: var(--background-light);
  color: var(--text-primary);
}

.tabcontent {
  background-color: var(--background-light);
  color: var(--text-primary);
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  margin-top: 20px;
  border: 1px solid var(--border-color);
}

/* Project Cards */
.project-card {
  background-color: var(--background-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.project-card h3 {
  color: var(--text-primary);
  margin-bottom: 16px;
}

.project-card p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* Technology Icons */
.tech-stack {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.tech-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-secondary);
}

.tech-icon i {
  font-size: 24px;
  margin-bottom: 8px;
  color: var(--primary-color);
}

/* Buttons */
.btn-primary {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-outline:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-1px);
}

/* Navigation Tabs */
.nav-tabs {
  background-color: var(--background-light);
  border-bottom: 1px solid var(--border-color);
  padding: 0;
  margin-bottom: 24px;
}

.nav-tabs .btn {
  background-color: transparent;
  color: var(--text-secondary);
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 12px 20px;
  transition: all 0.2s ease;
}

.nav-tabs .btn:hover,
.nav-tabs .btn.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  background-color: transparent;
}

/* Keep existing styles for hero, profile-img, chat components, etc. */
#hero {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, #1a365d 0%, #2563eb 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
}

#hero-content {
  width: 100%;
  padding: 20px 0;
  position: relative;
  z-index: 1;
}

#particles-js {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.3;
}

.profile-img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.card {
  background-color: var(--background-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: var(--text-primary);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--secondary-color);
  transform: translateY(-1px);
}

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

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

.badge {
  background-color: var(--background-dark);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 500;
  margin: 0 4px;
}

.badge .fas {
  color: var(--primary-color);
  margin-right: 4px;
}

/* Chatbox Styles */
.chat-messages {
  max-height: 300px;
  overflow-y: auto;
  padding: 16px;
  background-color: #ffffff;
  margin-bottom: 16px;
}

.chat-messages p {
  margin: 12px 0;
  clear: both;
  display: block;
  width: 100%;
}

.user, .bot {
  max-width: 85%;
  padding: 16px 24px;
  margin: 12px 0;
  border-radius: 24px;
  font-size: 1.1rem;
  line-height: 1.5;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}

.user {
  float: right;
  background-color: #4169E1;
  color: #ffffff;
  text-align: left;
}

.bot {
  float: left;
  background-color: #34a853;
  color: white;
  display: inline-block;
}

/* Add styles for long URLs */
.user a, .bot a {
  color: inherit;
  text-decoration: underline;
  word-break: break-all;
}

.chat-messages-container {
  width: 100%;
  padding: 0 16px;
}

/* Remove the ::before pseudo-element */
.bot::before {
  content: none;
}

/* Add separate bot label */
.bot-label {
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
  margin-right: 8px;
  opacity: 0.9;
}

/* Add separate bot message text */
.bot-message {
  color: white;
  font-weight: 400;
  font-size: 1.1rem;
}

.user::before {
  content: 'You: ';
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-right: 8px;
  font-size: 1.1rem;
}

.user-text {
  color: #ffffff;
  font-weight: 400;
}

.bot-suggestions {
  list-style: none;
  padding-left: 16px;
  margin-top: 12px;
  clear: both;
}

.bot-suggestions li {
  margin: 8px 0;
  padding: 10px 14px;
  background-color: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  cursor: pointer;
  color: #111827;
}

.bot-suggestions li:hover {
  background-color: #F9FAFB;
  transform: translateX(4px);
}

.chat-form {
  margin-top: 16px;
}

.chat-input-container {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

#user-input {
  flex: 1;
  background-color: var(--background-light);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s ease;
}

#user-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(65, 105, 225, 0.1);
}

#user-input::placeholder {
  color: var(--text-secondary);
  opacity: 0.8;
}

.send-button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.send-button:hover {
  background-color: var(--secondary-color);
  transform: translateY(-1px);
}

.send-button i {
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .chat-messages {
    max-height: 250px;
  }
  
  .bot-suggestions li {
    font-size: 0.85rem;
    padding: 6px 10px;
  }
  
  .chat-form input {
    font-size: 0.9rem;
    padding: 10px 14px;
  }
}

/* Navigation */
.horizontal-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 12px 0;
  margin-bottom: 24px;
  background-color: var(--background-light);
}

.horizontal-scroll::-webkit-scrollbar {
  display: none;
}

.horizontal-scroll .btn {
  margin: 0 6px;
  white-space: nowrap;
  background-color: var(--background-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.horizontal-scroll .btn:hover,
.horizontal-scroll .btn.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.horizontal-scroll .btn i {
  margin-right: 6px;
  color: var(--primary-color);
}

.horizontal-scroll .btn:hover i,
.horizontal-scroll .btn.active i {
  color: white;
}

/* Project Cards */
.project {
  background-color: var(--background-card);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  border: 1px solid var(--border-color);
}

.project:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
  background-color: var(--background-dark);
  color: var(--text-secondary);
  text-align: center;
  padding: 24px 0;
  margin-top: 48px;
  border-top: 1px solid var(--border-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  .card {
    margin-bottom: 16px;
  }
  
  .chat-messages {
    max-height: 250px;
  }
  
  .user, .bot {
    margin-left: 10%;
    margin-right: 10%;
  }
  
  .horizontal-scroll .btn {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
  
  .badge {
    font-size: 0.85rem;
    padding: 4px 8px;
  }
}

/* Section Headers */
h2 {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 8px;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

/* Card Headers */
.card-header {
  background-color: var(--primary-color);
  color: white;
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
}

.card-header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 500;
}

.card-header h2::after {
  display: none;
}

.card-body {
  background-color: var(--background-light);
  padding: 20px;
}

/* Links */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--secondary-color);
}

/* Buttons */
button,
.cta-button {
    background: #ffcc80;
    color: #121212;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover,
.cta-button:hover {
    background: #e6b566;
}

/* Responsive Design */
@media (max-width: 600px) {
    nav ul li {
        display: block;
        margin-bottom: 10px;
    }

    .project {
        margin-bottom: 20px;
    }
}

header {
    background-color: var(--background-light);
}

.tabcontent {
    background-color: #1c1c1c;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.card {
    background-color: #1c1c1c;
    color: #d4d4d4;
}

.badge {
    background-color: #2e2e2e;
    color: #d4d4d4;
}

.badge .fas {
    color: #ffcc80;
}

.chat-form input {
    background-color: #2e2e2e;
    color: #d4d4d4;
    border: 1px solid #444;
}

.chat-form input::placeholder {
    color: #888;
}

/* Chat card specific styles */
.chat-card {
  border-radius: 20px !important;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
  border: none !important;
}

.chat-card .card-header {
  background-color: #4169E1 !important;
  padding: 16px 20px !important;
  border-bottom: none !important;
}

.chat-card .card-body {
  padding: 20px !important;
  background-color: #ffffff !important;
}

/* Override any remaining dark theme styles */
.card, 
.tabcontent, 
section, 
.project, 
.experience-card {
  background-color: var(--background-light);
  color: var(--text-primary);
}

header {
  background-color: var(--background-light);
}

.badge {
  background-color: var(--background-dark);
  color: var(--text-primary);
}

/* Update text colors */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
}

p, li, span {
  color: var(--text-secondary);
}

/* Links */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--secondary-color);
}

.chat-input {
  background-color: white !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-color) !important;
}

.chat-input::placeholder {
  color: #6B7280 !important;
  opacity: 0.8;
}

.chat-input:focus {
  background-color: white !important;
  border-color: var(--primary-color) !important;
  box-shadow: none !important;
}

.view-details-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.view-details-btn:hover {
  background-color: var(--secondary-color);
  transform: translateY(-1px);
}

.view-details-btn i {
  font-size: 0.8rem;
}

.experience-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 24px;
  background-color: var(--background-light);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experience-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.experience-card .card-content {
  flex: 1;
}

.experience-card .tech-icons {
  margin: 16px 0;
}

.experience-card .bullet-points {
  margin-bottom: 16px;
}

.experience-card .button-container {
  margin-top: auto;
}

.hero-badges-container {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin: 0 0 32px 0;
  width: 100%;
  max-width: 600px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 8px; /* Space for potential scrollbar */
  -ms-overflow-style: none;  /* Hide scrollbar IE and Edge */
  scrollbar-width: none;  /* Hide scrollbar Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.hero-badges-container::-webkit-scrollbar {
  display: none;
}

.hero-badge {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px 20px;
  border-radius: 50px;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
  white-space: nowrap;
  flex: 0 0 auto;
}

.hero-badge i {
  font-size: 1.1rem;
  color: #60a5fa;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

@media (max-width: 768px) {
  .hero-badges-container {
    gap: 12px;
    justify-content: flex-start;
  }
  
  .hero-badge {
    font-size: 0.9rem;
    padding: 10px 16px;
  }
}

.hero-left-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 48px;
  max-width: 600px;
  padding: 48px 16px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
}

.hero-title span {
  color: #60a5fa;
}

.hero-description {
  font-size: 1.25rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.profile-container {
  margin: 0;
  padding-top: 48px;
}

.download-resume {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  text-decoration: none;
  margin: 0;
  align-self: flex-start;
}

.download-resume:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  color: #ffffff;
  text-decoration: none;
}

@media (max-width: 768px) {
  .hero-left-content {
    gap: 32px;
    padding: 32px 0;
    align-items: center;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-description {
    font-size: 1.1rem;
  }
  
  .download-resume {
    align-self: center;
    margin-bottom: 32px;
  }
}

/* Skills Grid Masonry Layout */
.skills-grid {
  column-count: 3;
  column-gap: 1.5rem;
  margin-top: 1.5rem;
}

.skill-card {
  break-inside: avoid;
  page-break-inside: avoid;
  margin-bottom: 1.5rem;
  display: block;
}

.skill-card .card {
  height: auto;
  margin: 0;
  display: block;
}

.skill-card .card-body {
  height: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .skills-grid {
    column-count: 1;
    column-gap: 1rem;
  }
  
  .skill-card {
    margin-bottom: 1rem;
  }
}

@media (min-width: 769px) and (max-width: 1200px) {
  .skills-grid {
    column-count: 2;
    column-gap: 1.5rem;
  }
}

@media (min-width: 1201px) {
  .skills-grid {
    column-count: 3;
    column-gap: 1.5rem;
  }
}

/* Experience Cards - Allow independent height */
#experience .row {
  align-items: flex-start !important;
}

#experience .col {
  display: flex;
  flex-direction: column;
}

#experience .experience-card {
  height: auto !important;
  min-height: 300px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

#experience .experience-card .card-content {
  flex: 1;
}

#experience .experience-card .button-container {
  margin-top: auto;
}

/* Project Cards - Allow natural height while maintaining consistency */
#projects .card {
  min-height: 300px;
  height: auto;
  display: flex;
  flex-direction: column;
}

#projects .card .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

#projects .card .card-footer {
  margin-top: auto;
}

/* Ensure collapse content doesn't affect card height calculation */
#projects .collapse,
#experience .collapse {
  position: relative;
  z-index: 10;
}

#projects .collapse.show,
#experience .collapse.show {
  position: relative;
  z-index: 11;
}

/* Bootstrap Collapse Isolation */
.collapse {
  position: relative;
  z-index: 1;
}

.collapse.show {
  z-index: 2;
}

/* Ensure each card's collapse is independent */
.card .collapse {
  position: relative;
}

.card .collapse.show {
  position: relative;
}

/* Prevent collapse interference */
[data-bs-toggle="collapse"] {
  position: relative;
  z-index: 1;
}

  