body {
  background-color: #f8f9fa;
}

.portfolio-section {
  padding: 60px 0;
}

.portfolio-heading {
  text-align: center;
  margin-bottom: 40px;
}

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}

.portfolio-filter-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 20px;
  background-color: #e0e0e0;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.portfolio-filter-btn.active,
.portfolio-filter-btn:hover {
  background-color: #007bff;
  color: #fff;
}

.portfolio-item {
  background: white;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.3s ease;
  text-align: center;
  transform: scale(0.8); /* Shrinks the card */
  transform-origin: top center;
}

.portfolio-item:hover {
  transform: translateY(-5px);
}

.portfolio-item img {
  width: 100%;
  height: auto;
}

.portfolio-title {
  font-size: 1rem;
  padding: 0.75rem;
  color: #333;
  font-size: 0.85rem; /* Was 1rem */
  padding: 0.5rem;
}
.portfolio-img-wrapper {
  height: 180px; /* Set your desired height */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f0f0f0;
  height: 144px; /* Was 180px, now 180 * 0.8 */
}

/* Make images fit without distortion */
.portfolio-img-wrapper img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

/* Wrapper for consistent aspect ratio */
.portfolio-img-wrapper {
  width: 100%;
  aspect-ratio: 4 / 3; /* modern browsers */
  background-color: #f0f0f0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Fallback for browsers without aspect-ratio support */
@supports not (aspect-ratio: 4 / 3) {
  .portfolio-img-wrapper {
    height: 180px;
  }
}

/* Make images scale properly */
.portfolio-img-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Card Styling */
.portfolio-item {
  background: white;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.portfolio-item:hover {
  transform: translateY(-5px);
}

.portfolio-title {
  font-size: 1rem;
  padding: 0.75rem;
  margin: 0;
  color: #333;
}

/* Overall section layout */
.about-section {
  background-color: #f8f9fa;
}

/* Image wrapper with consistent aspect ratio */
.profile-photo-container {
  width: 100%;
  max-width: 260px;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Let the image fill the space but retain full height */
.profile-photo {
  width: 100%;
  height: auto;
  display: block;
}

/* Text section */
.section-title h2 {
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 10px;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
}

/* CTA Button */
.btn-primary {
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 25px;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #0056b3;
}

.testimonial-card {
  margin: 40px auto;
  max-width: 750px;
  background: #fff;
  padding: 35px;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.testimonial-card.active {
  opacity: 1;
  transform: translateY(0);
}

.testimonial-text {
  font-size: 1.15rem;
  font-style: italic;
  color: #333;
  margin-bottom: 20px;
}

.testimonial-author {
  font-weight: 600;
  color: #007bff;
  text-transform: uppercase;
  font-size: 0.95rem;
  margin-top: 15px;
}

.testimonial-stars {
  font-size: 1.2rem;
  color: #ffc107;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.glide__bullet {
  background: #ccc;
  width: 10px;
  height: 10px;
  margin: 5px;
  border-radius: 50%;
  border: none;
  transition: background-color 0.3s;
}

.glide__bullet.glide__bullet--active {
  background-color: #007bff;
}

/* Dark-themed portfolio section */
.portfolio-header {
  max-width: 960px;
  margin: 60px auto 40px auto;
  text-align: center;
  padding: 0 20px;
  color: #f1f1f1; /* fallback text color */
}

/* Heading Title */
.portfolio-heading-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 14px;
  position: relative;
  display: inline-block;
  letter-spacing: 0.5px;
}

.portfolio-heading-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: #00bfff;
  margin: 12px auto 0;
  border-radius: 3px;
}

/* Subheading */
.portfolio-heading-subtitle {
  font-size: 1.125rem;
  color: #bbbbbb;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
  font-weight: 400;
}

/* Fade-in Animation */
.portfolio-header {
  animation: fadeInUp 0.6s ease-out both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.new-banner-slider {
  width: 100%;
  height: 100vh;
  position: relative;
}

.banner-slide {
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.25);
  z-index: 1;
}

.banner-content {
  z-index: 2;
  color: #fff;
  text-align: center;
  padding: 20px;
  max-width: 90%;
}

.banner-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.banner-content h2 {
  font-size: 1.6rem;
  font-weight: 400;
  animation: fadeInUp 1.5s ease-in-out;
}

.primary-btn {
  margin-top: 20px;
  padding: 12px 28px;
  background-color: #007bff;
  color: white;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s ease;
}

.primary-btn:hover {
  background-color: #0056b3;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media screen and (max-width: 768px) {
  .banner-content h1 { font-size: 2.2rem; }
  .banner-content h2 { font-size: 1.2rem; }
}

.custom-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1050;
  background: rgba(0, 0, 0, 0.9); /* lighter transparent */
  backdrop-filter: blur(8px); /* optional glassmorphism */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: background 0.3s ease;
}

body {
  padding-top: 80px; /* Match header height to prevent hiding content */
}

/* Navbar Links */
.navbar .nav-link {
  color: #ffffff;
  font-weight: 500;
  padding: 10px 14px;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: #00d9ff;
  text-decoration: none;
}

/* Logo Image */
.navbar-brand img {
  max-height: 60px;
  width: auto;
}

/* Dropdown Menu */
.dropdown-menu {
  background-color: #222;
  border: none;
  border-radius: 0;
  margin-top: 0;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.dropdown-menu .dropdown-item {
  color: #ddd;
  padding: 10px 16px;
  transition: background-color 0.3s, color 0.3s;
  font-size: 0.92rem;
}

.dropdown-menu .dropdown-item:hover {
  background-color: #111;
  color: #00d9ff;
}

/* Social Icons */
.social-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-icons a {
  color: #ccc;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #00d9ff;
}

/* Responsive Fix for Small Screens */
@media (max-width: 768px) {
  .navbar .nav-link {
    padding: 10px;
    display: block;
    text-align: left;
  }

  .social-icons {
    justify-content: start;
    padding-left: 15px;
    margin-top: 10px;
  }
}

.custom-footer {
  background-color: #0d1117; /* Elegant dark */
  border-top: 1px solid #30363d;
}

.custom-footer a:hover {
  color: #0dcaf0 !important;
  text-decoration: none;
}

.custom-footer i {
  transition: transform 0.3s ease;
}

.custom-footer i:hover {
  transform: scale(1.2);
}
.custom-footer {
  background: #0e0e11;
  padding: 60px 20px;
  text-align: center;
  color: #ccc;
}

.about-text p {
  line-height: 1.7;
  margin-bottom: 1rem;
  text-align: justify;
}

.social_details a {
  color: #000;
  transition: transform 0.2s ease, color 0.3s ease;
}
.social_details a:hover {
  color: #0d6efd;
  transform: scale(1.2);
}