/* General Styles */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px; /* Adjust to your navbar height for anchor links */
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
}

/* Navbar Adjustments */
.navbar-brand {
  font-weight: bold;
  font-size: 1.5rem;
}

/* Theme Switch Styles in Navbar */
.navbar .form-switch {
  padding-left: 0;
}

.navbar .form-switch .form-check-input {
  cursor: pointer;
  width: 2.75em;
  height: 1.45em;
  margin-left: 0;
  margin-right: 0.5rem;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%280,0,0,0.25%29'/%3e%3c/svg%3e");
}

.navbar .form-switch .form-check-input:focus {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%2386b7fe'/%3e%3c/svg%3e");
}

.navbar .form-switch .form-check-input:checked {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}


.navbar .form-switch .form-check-label {
  cursor: pointer;
  color: var(--bs-navbar-color);
  line-height: 1.45em;
  padding-left: 0;
}

.navbar .form-switch .form-check-label .bi {
  vertical-align: middle;
  font-size: 1.15rem;
}

/* Header */
header .btn-light i {
  margin-right: 0.25rem;
}

/* About Me Section */
.profile-photo {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* ======================= NEW CSS FOR HORIZONTAL PROJECTS ======================= */
.horizontal-scroll-wrapper {
  overflow-x: auto; /* Enable horizontal scrolling */
  overflow-y: hidden; /* Hide vertical scrollbar if any */
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  padding-bottom: 1rem; /* Space for the scrollbar so it doesn't overlap content */
  scrollbar-width: thin; /* Firefox scrollbar */
  scrollbar-color: #888 #f1f1f1; /* Firefox scrollbar */
}

/* Custom scrollbar styling for Webkit browsers (Chrome, Safari) */
.horizontal-scroll-wrapper::-webkit-scrollbar {
  height: 8px; /* Height of the scrollbar */
}
.horizontal-scroll-wrapper::-webkit-scrollbar-track {
  background: #f1f1f1; /* Track color */
  border-radius: 10px;
}
.horizontal-scroll-wrapper::-webkit-scrollbar-thumb {
  background: #888; /* Thumb color */
  border-radius: 10px;
}
.horizontal-scroll-wrapper::-webkit-scrollbar-thumb:hover {
  background: #555; /* Thumb hover color */
}

/* Dark theme scrollbar adjustments */
[data-bs-theme="dark"] .horizontal-scroll-wrapper {
  scrollbar-color: #666 #333; /* Firefox scrollbar dark */
}
[data-bs-theme="dark"] .horizontal-scroll-wrapper::-webkit-scrollbar-track {
  background: #2b3035; /* Dark track color */
}
[data-bs-theme="dark"] .horizontal-scroll-wrapper::-webkit-scrollbar-thumb {
  background: #555; /* Dark thumb color */
}
[data-bs-theme="dark"] .horizontal-scroll-wrapper::-webkit-scrollbar-thumb:hover {
  background: #777; /* Dark thumb hover color */
}

.projects-container {
  /* d-flex and flex-nowrap are handled by Bootstrap classes in the HTML */
}

.project-card-wrapper {
  flex: 0 0 auto; /* Prevent cards from shrinking or growing */
  width: 90%; /* On small screens, one card is almost full width */
  margin-right: 1.5rem; /* Space between cards */
}
.project-card-wrapper:last-child {
  margin-right: 0; /* No margin on the last card */
}

/* Set card widths for different screen sizes */
@media (min-width: 576px) {
  .project-card-wrapper {
    width: 380px; /* A fixed width can look good on medium screens and up */
  }
}
/* ======================= END NEW CSS ======================= */


.card {
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  border: 1px solid var(--bs-border-color);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}
.card .btn i {
  margin-right: 0.3rem;
}

/* Skills Section */
#skills .badge {
  padding: 0.5em 0.75em;
}
.badge.fs-6 {
    font-size: 0.95rem !important;
}

/* Experience Accordion */
.accordion-button:not(.collapsed) {
  color: var(--bs-accordion-active-color);
  background-color: var(--bs-accordion-active-bg);
}
.accordion-button:focus {
  box-shadow: none;
}
.accordion-item {
    background-color: var(--bs-accordion-bg);
    border: 1px solid var(--bs-accordion-border-color);
}

/* Education & Certifications */
#education-certs .btn-outline-secondary i {
  margin-right: 0.3rem;
}
#certificationsAccordion .accordion-body ul {
  padding-left: 0.5rem; /* Less padding inside the accordion body */
}


/* Contact Section */
#contact .btn i {
  margin-right: 0.4rem;
}

/* Footer */
footer p {
  margin-bottom: 0;
}

/* Dark Theme Specific Adjustments */
[data-bs-theme="dark"] .profile-photo {
  border-color: #444;
}

[data-bs-theme="dark"] .card:hover {
  box-shadow: 0 8px 16px rgba(255,255,255,0.05);
}
