/* Portfolio Page Styles - Matching Home Page Theme */

/* Portfolio Hero Section */
.portfolio-hero-section {
  position: relative;
  background: linear-gradient(135deg, var(--primary-color) 0%, #01357a 100%);
  padding: 150px 0 100px;
  overflow: hidden;
}

.portfolio-hero-section .hero-background,
.portfolio-details-hero .hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.portfolio-hero-section .hero-shape,
.portfolio-details-hero .hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
}

.portfolio-hero-section .hero-shape-1,
.portfolio-details-hero .hero-shape-1 {
  width: 300px;
  height: 300px;
  background: var(--secondary-color);
  top: -100px;
  right: 10%;
  animation: portfolioHeroFloat 20s ease-in-out infinite;
}

.portfolio-hero-section .hero-shape-2,
.portfolio-details-hero .hero-shape-2 {
  width: 200px;
  height: 200px;
  background: var(--white);
  bottom: -50px;
  left: 5%;
  animation: portfolioHeroFloat 15s ease-in-out infinite reverse;
}

.portfolio-hero-section .hero-shape-3,
.portfolio-details-hero .hero-shape-3 {
  width: 150px;
  height: 150px;
  background: var(--secondary-color);
  top: 40%;
  left: 10%;
  animation: portfolioHeroFloat 18s ease-in-out infinite;
  animation-delay: 2s;
}

@keyframes portfolioHeroFloat {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(30px, -30px) rotate(180deg);
  }
}

.portfolio-hero-section .container,
.portfolio-details-hero .container {
  position: relative;
  z-index: 2;
}

.portfolio-hero-section .breadcrumb-nav,
.portfolio-details-hero .breadcrumb-nav {
  margin-bottom: 30px;
}

.portfolio-hero-section .breadcrumb,
.portfolio-details-hero .breadcrumb {
  background: rgba(255, 255, 255, 0.1);
  padding: 12px 25px;
  border-radius: 50px;
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.portfolio-hero-section .breadcrumb-item a,
.portfolio-details-hero .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.portfolio-hero-section .breadcrumb-item a:hover,
.portfolio-details-hero .breadcrumb-item a:hover {
  color: var(--secondary-color);
}

.portfolio-hero-section .breadcrumb-item.active,
.portfolio-details-hero .breadcrumb-item.active {
  color: var(--white);
}

.portfolio-hero-section .breadcrumb-item + .breadcrumb-item::before,
.portfolio-details-hero .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.5);
}

.portfolio-hero-section .page-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.2;
}

.portfolio-hero-section .page-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Portfolio Details Hero */
.portfolio-details-hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary-color) 0%, #01357a 100%);
  padding: 150px 0 100px;
  overflow: hidden;
}

.portfolio-details-hero .project-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--white) !important;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: none !important;
}

.portfolio-details-hero .project-category {
  display: inline-block;
  background: rgba(235, 190, 0, 0.2);
  color: var(--secondary-color);
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 20px;
  border: 1px solid rgba(235, 190, 0, 0.3);
}

.portfolio-details-hero .project-meta {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 30px;
}

.portfolio-details-hero .meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.9);
}

.portfolio-details-hero .meta-item i {
  color: var(--secondary-color);
  font-size: 1.2rem;
}

.portfolio-details-hero .meta-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  display: block;
}

.portfolio-details-hero .meta-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  display: block;
}

/* Floating Background Elements */
.portfolio-overview .floating-bg,
.portfolio-filter .floating-bg,
.portfolio-grid .floating-bg,
.portfolio-technologies .floating-bg,
.project-content .floating-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.floating-bg .float-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
  will-change: transform;
}

.floating-bg .float-shape-1 {
  width: 150px;
  height: 150px;
  background: var(--primary-color);
  top: 15%;
  right: 10%;
  animation: portfolioFloat 20s ease-in-out infinite;
}

.floating-bg .float-shape-2 {
  width: 100px;
  height: 100px;
  background: var(--secondary-color);
  bottom: 20%;
  left: 8%;
  animation: portfolioFloat 18s ease-in-out infinite reverse;
  animation-delay: 1s;
}

@keyframes portfolioFloat {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(20px, -20px) rotate(90deg);
  }
  50% {
    transform: translate(-15px, 15px) rotate(180deg);
  }
  75% {
    transform: translate(15px, 20px) rotate(270deg);
  }
}

/* Ensure sections have position relative */
.portfolio-overview,
.portfolio-filter,
.portfolio-grid,
.portfolio-technologies,
.project-content {
  position: relative;
}

.portfolio-overview .container,
.portfolio-filter .container,
.portfolio-grid .container,
.portfolio-technologies .container,
.project-content .container {
  position: relative;
  z-index: 2;
}

/* Section Badge */
.portfolio-overview .section-badge,
.portfolio-filter .section-badge,
.portfolio-technologies .section-badge,
.project-content .section-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(235, 190, 0, 0.15);
  color: var(--primary-color);
  padding: 10px 20px;
  border-radius: 50px;
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid rgba(235, 190, 0, 0.3);
}

.portfolio-overview .section-badge i,
.portfolio-filter .section-badge i,
.portfolio-technologies .section-badge i,
.project-content .section-badge i {
  color: var(--secondary-color);
}

/* Portfolio Overview Specific Styles */
.portfolio-overview {
  background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
}

.portfolio-overview .highlight-item {
  display: flex;
  gap: 20px;
  padding: 25px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(2, 44, 130, 0.1);
  border-radius: 15px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.portfolio-overview .highlight-item:hover {
  transform: translateX(10px);
  box-shadow: 0 10px 30px rgba(2, 44, 130, 0.1);
  background: rgba(255, 255, 255, 0.95);
}

.portfolio-overview .highlight-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    rgba(2, 44, 130, 0.1),
    rgba(2, 44, 130, 0.05)
  );
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.portfolio-overview .highlight-icon i {
  font-size: 1.8rem;
  color: var(--primary-color);
}

.portfolio-overview .highlight-item:hover .highlight-icon {
  background: var(--primary-color);
  transform: scale(1.1);
}

.portfolio-overview .highlight-item:hover .highlight-icon i {
  color: var(--secondary-color);
}

.portfolio-overview .highlight-content h5 {
  color: var(--primary-color);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.portfolio-overview .highlight-content p {
  color: var(--dark-gray);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.6;
}

/* Portfolio Stats */
.portfolio-stats .stat-item {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(2, 44, 130, 0.1);
  border-radius: 15px;
  padding: 25px 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.portfolio-stats .stat-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(2, 44, 130, 0.12);
  background: rgba(255, 255, 255, 0.95);
}

.portfolio-stats .stat-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    rgba(2, 44, 130, 0.1),
    rgba(2, 44, 130, 0.05)
  );
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  transition: all 0.3s ease;
}

.portfolio-stats .stat-icon i {
  font-size: 1.8rem;
  color: var(--primary-color);
}

.portfolio-stats .stat-item:hover .stat-icon {
  background: var(--primary-color);
  transform: scale(1.1);
}

.portfolio-stats .stat-item:hover .stat-icon i {
  color: var(--secondary-color);
}

.portfolio-stats .stat-item h4 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 8px;
  line-height: 1;
}

.portfolio-stats .stat-item p {
  color: var(--dark-gray);
  font-size: 0.9rem;
  margin: 0;
  font-weight: 500;
}

/* Portfolio Filter Section */
.portfolio-filter {
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
}

.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(2, 44, 130, 0.1);
  color: var(--primary-color);
  padding: 12px 25px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(2, 44, 130, 0.2);
}

.filter-btn i {
  font-size: 1rem;
}

/* Portfolio Grid Section - Using same card style as home page */
.portfolio-grid {
  background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
}

/* Portfolio Card - Matching includes/portfolio.php style */
.portfolio-grid .portfolio-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(2, 44, 130, 0.1);
  border-radius: 20px;
  padding: 35px 30px;
  height: 100%;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.portfolio-grid .portfolio-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.portfolio-grid .portfolio-card:hover::before {
  transform: scaleX(1);
}

.portfolio-grid .portfolio-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(2, 44, 130, 0.15);
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(2, 44, 130, 0.2);
}

/* Portfolio Image Header */
.portfolio-grid .portfolio-image-header {
  position: relative;
  margin: -35px -30px 20px -30px;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}

.portfolio-grid .project-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: all 0.4s ease;
}

.portfolio-grid .portfolio-card:hover .project-img {
  transform: scale(1.05);
}

.portfolio-grid .project-category {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(235, 190, 0, 0.95);
  color: var(--primary-color);
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Portfolio Content */
.portfolio-grid .portfolio-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.portfolio-grid .project-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(
    135deg,
    rgba(2, 44, 130, 0.1),
    rgba(2, 44, 130, 0.05)
  );
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  margin-bottom: 15px;
}

.portfolio-grid .project-icon i {
  font-size: 1.5rem;
  color: var(--primary-color);
  transition: all 0.4s ease;
}

.portfolio-grid .portfolio-card:hover .project-icon {
  background: linear-gradient(135deg, var(--primary-color), #0347b8);
  transform: scale(1.1);
}

.portfolio-grid .portfolio-card:hover .project-icon i {
  color: var(--secondary-color);
}

/* Project Title */
.portfolio-grid .portfolio-card .portfolio-project-title {
  color: var(--primary-color) !important;
  font-size: 1.15rem !important;
  font-weight: 600 !important;
  margin-bottom: 15px;
  line-height: 1.4;
  text-shadow: none !important;
}

.portfolio-grid .project-description {
  color: var(--dark-gray);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Project Tags */
.portfolio-grid .project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 25px;
}

.portfolio-grid .project-tags .tag {
  background: rgba(2, 44, 130, 0.08);
  color: var(--primary-color);
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.portfolio-grid .portfolio-card:hover .project-tags .tag {
  background: rgba(2, 44, 130, 0.12);
}

/* Project Link */
.portfolio-grid .project-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  margin-top: auto;
}

.portfolio-grid .project-link:hover {
  color: var(--secondary-color);
  gap: 15px;
}

.portfolio-grid .project-link i {
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.portfolio-grid .project-link:hover i {
  transform: translateX(5px);
}

/* Load More Button */
.portfolio-grid .load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 35px;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.portfolio-grid .load-more-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(2, 44, 130, 0.2);
}

.portfolio-grid .load-more-text {
  color: var(--dark-gray);
  font-size: 0.9rem;
  margin: 0;
}

/* Portfolio Technologies Section */
.portfolio-technologies {
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
}

.tech-category {
  margin-bottom: 40px;
}

.tech-category h4 {
  color: var(--primary-color);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
}

.tech-grid {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.tech-item {
  background: #fafafa;
  border: 1px solid rgba(2, 44, 130, 0.1);
  border-radius: 15px;
  padding: 10px;
  text-align: center;
  transition: all 0.3s ease;
  min-width: 120px;
}

.tech-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(2, 44, 130, 0.12);
  background: rgba(255, 255, 255, 0.95);
}

.tech-logo {
  width: 120px;
  height: 120px;
  transition: transform 0.3s ease;
}

.tech-item:hover .tech-logo {
  transform: scale(1.1) rotate(5deg);
}

.tech-item h6 {
  color: var(--primary-color);
  font-weight: 600;
  margin: 0;
  font-size: 0.95rem;
}

/* Project Content Section */
.project-content {
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
}

.project-content .content-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(2, 44, 130, 0.1);
  border-radius: 20px;
  padding: 40px 35px;
  margin-bottom: 30px;
  transition: all 0.3s ease;
}

.project-content .content-card:hover {
  box-shadow: 0 15px 40px rgba(2, 44, 130, 0.12);
  transform: translateY(-5px);
}

.project-content .content-card h3 {
  color: var(--primary-color);
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.project-content .content-card p {
  color: var(--dark-gray);
  line-height: 1.8;
  margin-bottom: 15px;
}

.project-content .feature-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.project-content .feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--dark-gray);
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.project-content .feature-list li i {
  color: var(--secondary-color);
  font-size: 0.9rem;
}

.project-content .tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.project-content .tech-tag {
  background: rgba(2, 44, 130, 0.08);
  color: var(--primary-color);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.project-content .tech-tag:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

/* Project Results */
.project-content .project-results {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(2, 44, 130, 0.1);
  border-radius: 20px;
  padding: 40px 35px;
}

.project-content .result-item {
  text-align: center;
  padding: 25px 20px;
}

.project-content .result-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(
    135deg,
    rgba(2, 44, 130, 0.1),
    rgba(2, 44, 130, 0.05)
  );
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: all 0.3s ease;
}

.project-content .result-icon i {
  font-size: 2rem;
  color: var(--primary-color);
}

.project-content .result-item:hover .result-icon {
  background: var(--primary-color);
  transform: scale(1.1);
}

.project-content .result-item:hover .result-icon i {
  color: var(--secondary-color);
}

.project-content .result-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
  line-height: 1;
}

.project-content .result-label {
  color: var(--dark-gray);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Project Gallery Section */
.project-gallery {
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  position: relative;
}

.project-gallery .gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(2, 44, 130, 0.1);
  transition: all 0.4s ease;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(2, 44, 130, 0.1);
}

.project-gallery .gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(2, 44, 130, 0.15);
}

.project-gallery .gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.project-gallery .gallery-item:hover img {
  transform: scale(1.05);
}

.project-gallery .gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 44, 130, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  cursor: pointer;
}

.project-gallery .gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.project-gallery .overlay-content {
  text-align: center;
  color: var(--white);
}

.project-gallery .overlay-content i {
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.project-gallery .overlay-content p {
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

/* Related Projects Section */
.related-projects {
  background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
  position: relative;
}

.related-projects .related-project-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(2, 44, 130, 0.1);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.4s ease;
  height: 100%;
}

.related-projects .related-project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(2, 44, 130, 0.15);
  background: rgba(255, 255, 255, 1);
}

.related-projects .project-image {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.related-projects .project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.related-projects .related-project-card:hover .project-image img {
  transform: scale(1.1);
}

.related-projects .project-info {
  padding: 25px;
  text-align: center;
}

.related-projects .project-info h5 {
  color: var(--primary-color);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.related-projects .project-info p {
  color: var(--dark-gray);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.related-projects .project-info .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.related-projects .project-info .btn:hover {
  transform: translateX(5px);
}

/* Project CTA Section */
.project-cta {
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
}

.project-cta .cta-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.project-cta .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 35px;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.project-cta .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(2, 44, 130, 0.2);
}

/* Responsive Design */
@media (max-width: 992px) {
  .portfolio-hero-section .page-title {
    font-size: 2.8rem;
  }

  .portfolio-details-hero .project-title {
    font-size: 2.5rem !important;
  }

  .portfolio-grid .portfolio-card {
    padding: 30px 25px;
  }

  .portfolio-grid .portfolio-image-header {
    margin: -30px -25px 20px -25px;
  }

  .portfolio-grid .project-img {
    height: 150px;
  }

  .portfolio-grid .portfolio-card .portfolio-project-title {
    font-size: 1.1rem !important;
  }
}

@media (max-width: 768px) {
  .portfolio-hero-section,
  .portfolio-details-hero {
    padding: 120px 0 80px;
  }

  .portfolio-hero-section .page-title {
    font-size: 2.2rem;
  }

  .portfolio-hero-section .page-subtitle {
    font-size: 1.05rem;
  }

  .portfolio-details-hero .project-title {
    font-size: 2rem !important;
  }

  .portfolio-details-hero .project-meta {
    gap: 20px;
  }

  .project-content .content-card {
    padding: 30px 25px;
  }

  .filter-buttons {
    gap: 10px;
  }

  .filter-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .portfolio-overview .highlight-item {
    flex-direction: column;
    text-align: center;
  }

  .portfolio-grid .portfolio-card {
    padding: 25px 20px;
  }

  .portfolio-grid .project-img {
    height: 160px;
  }

  .portfolio-grid .project-icon {
    width: 45px;
    height: 45px;
  }

  .portfolio-grid .project-icon i {
    font-size: 1.3rem;
  }

  .portfolio-grid .portfolio-card .portfolio-project-title {
    font-size: 1.05rem !important;
  }

  .portfolio-grid .project-description {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .portfolio-hero-section,
  .portfolio-details-hero {
    padding: 100px 0 60px;
  }

  .portfolio-hero-section .page-title {
    font-size: 1.9rem;
  }

  .portfolio-details-hero .project-title {
    font-size: 1.7rem !important;
  }

  .project-content .content-card h3 {
    font-size: 1.5rem;
  }

  .project-content .result-value {
    font-size: 2rem;
  }

  .filter-btn {
    padding: 8px 18px;
    font-size: 0.85rem;
  }

  .portfolio-stats .stat-item {
    margin-bottom: 15px;
  }

  .portfolio-grid .portfolio-card {
    padding: 20px 18px;
  }

  .portfolio-grid .portfolio-image-header {
    margin: -20px -18px 15px -18px;
  }

  .portfolio-grid .project-img {
    height: 140px;
  }

  .portfolio-grid .portfolio-card .portfolio-project-title {
    font-size: 1rem !important;
  }

  .portfolio-grid .project-tags .tag {
    font-size: 0.75rem;
    padding: 4px 10px;
  }

  .portfolio-grid .project-link {
    font-size: 0.95rem;
  }

  .project-gallery .overlay-content i {
    font-size: 2.5rem;
  }

  .related-projects .project-image {
    height: 180px;
  }

  .related-projects .project-info {
    padding: 20px;
  }

  .project-cta .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .project-cta .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}

.portfolio-content-card {
  background: white;
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}
.portfolio-content-card a {
  color: white !important;
}

.project-header h2 {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 2.5rem;
}

.project-meta {
  border-left: 4px solid var(--primary-color);
}

.text-justify {
  text-align: justify;
}

.btn-lg {
  padding: 12px 30px;
  font-weight: 600;
}

.project-links .btn {
  transition: all 0.3s ease;
}

.project-links .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
