/* Project and Gallery Styles */
.project-card {
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.project-image-wrapper {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: var(--bs-secondary-bg);
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover .project-image {
  transform: scale(1.05);
}

.project-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--bs-secondary-bg);
  color: var(--bs-secondary-color);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-overlay-content {
  text-align: center;
  color: white;
  padding: 1rem;
}

.project-overlay-content .project-title {
  color: white;
  margin-bottom: 0.5rem;
}

.project-overlay-content .project-description {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
}

.project-technologies {
  margin-bottom: 1rem;
}

.project-technologies .badge {
  margin: 0.25rem;
}

.project-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.project-info {
  padding: 1.5rem;
}

.project-title-main {
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.project-excerpt {
  color: var(--bs-secondary-color);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--bs-secondary-color);
}

.project-client,
.project-date {
  display: flex;
  align-items: center;
}

/* Gallery Styles */
.gallery-item {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  background: var(--bs-body-bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay-content {
  color: white;
  text-align: center;
}

.gallery-overlay-content i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.gallery-overlay-content p {
  margin: 0;
  font-size: 0.875rem;
  opacity: 0.9;
}

/* Lightbox Modal Styles */
.lightbox-modal .modal-content {
  background: rgba(0, 0, 0, 0.95);
  border: none;
  border-radius: 0;
}

.lightbox-modal .modal-header {
  border-bottom: none;
  padding: 1rem;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1050;
}

.lightbox-modal .modal-header .btn-close {
  filter: invert(1);
  opacity: 0.8;
}

.lightbox-modal .modal-body {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
}

.lightbox-modal .modal-body img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.lightbox-modal .modal-footer {
  border-top: none;
  padding: 1rem;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

.lightbox-modal .modal-footer .btn {
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
}

.lightbox-modal .modal-footer .btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Project Hero Image */
.project-hero-image {
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.project-hero-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .project-image-wrapper {
    height: 200px;
  }
  
  .gallery-image {
    height: 200px;
  }
  
  .project-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .project-actions {
    flex-direction: column;
  }
  
  .project-actions .btn {
    width: 100%;
  }
}

/* Dark theme adjustments */
[data-bs-theme="dark"] .project-card {
  background: var(--bs-dark);
  border-color: var(--bs-border-color);
}

[data-bs-theme="dark"] .gallery-item {
  background: var(--bs-dark);
}

[data-bs-theme="dark"] .project-placeholder {
  background: var(--bs-secondary-bg);
  color: var(--bs-secondary-color);
}

/* Loading states */
.gallery-item.loading {
  pointer-events: none;
}

.gallery-item.loading::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--bs-border-color);
  border-top-color: var(--bs-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 1;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Bold Call to Action Styles */
.cta-section {
  background: linear-gradient(135deg, #fe8d00 0%, #f04300 50%, #fe8d00 100%) !important;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(254, 141, 0, 0.3);
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.2;
  pointer-events: none;
}

.cta-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: 1rem;
}

.cta-section .lead {
  font-size: 1.25rem;
  font-weight: 500;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  margin-bottom: 2rem;
}

.cta-section .btn {
  font-size: 1.1rem;
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  border: 3px solid transparent;
}

.cta-section .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.3);
}

.cta-section .btn:active {
  transform: translateY(-1px);
}

/* Enhanced Share Buttons */
.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-start;
}

.share-buttons .btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.share-buttons .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.share-buttons .btn:hover::before {
  left: 100%;
}

.share-buttons .btn:hover {
  transform: translateY(-2px) scale(1.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Social Media Specific Colors */
.share-buttons .btn[href*="twitter"] {
  background: #1DA1F2;
  color: white;
}

.share-buttons .btn[href*="twitter"]:hover {
  background: #0d8bd9;
  border-color: #1DA1F2;
}

.share-buttons .btn[href*="linkedin"] {
  background: #0077B5;
  color: white;
}

.share-buttons .btn[href*="linkedin"]:hover {
  background: #005885;
  border-color: #0077B5;
}

.share-buttons .btn[href*="facebook"] {
  background: #4267B2;
  color: white;
}

.share-buttons .btn[href*="facebook"]:hover {
  background: #365899;
  border-color: #4267B2;
}

/* Responsive adjustments for CTA and Share buttons */
@media (max-width: 768px) {
  .cta-section h2 {
    font-size: 2rem;
  }
  
  .cta-section .lead {
    font-size: 1.1rem;
  }
  
  .cta-section .btn {
    font-size: 1rem;
    padding: 0.875rem 1.75rem;
  }
  
  .share-buttons {
    justify-content: center;
  }
  
  .share-buttons .btn {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
}

/* Dark theme adjustments */
[data-bs-theme="dark"] .cta-section {
  background: linear-gradient(135deg, #fe8d00 0%, #f04300 50%, #fe8d00 100%) !important;
}

[data-bs-theme="dark"] .share-buttons .btn {
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] .share-buttons .btn:hover {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

/* Project Gallery Section Styling */
.project-gallery {
  background: var(--bs-light) !important;
}

.project-gallery h2 {
  color: var(--bs-dark) !important;
  font-weight: 600;
  font-size: 2.2rem;
  margin-bottom: 2rem;
}

.project-gallery h2 i {
  color: var(--bs-primary);
}

/* Dark theme adjustments for gallery */
[data-bs-theme="dark"] .project-gallery {
  background: var(--bs-dark) !important;
}

[data-bs-theme="dark"] .project-gallery h2 {
  color: var(--bs-light) !important;
}

[data-bs-theme="dark"] .project-gallery h2 i {
  color: var(--bs-primary);
}

/* Related Projects Section Styling */
.related-projects {
  background: var(--bs-light) !important;
}

.related-projects h2 {
  color: var(--bs-dark) !important;
  font-weight: 600;
  font-size: 2.2rem;
  margin-bottom: 2rem;
}

.related-projects h2 i {
  color: var(--bs-primary);
}

/* Dark theme adjustments for related projects */
[data-bs-theme="dark"] .related-projects {
  background: var(--bs-dark) !important;
}

[data-bs-theme="dark"] .related-projects h2 {
  color: var(--bs-light) !important;
}

[data-bs-theme="dark"] .related-projects h2 i {
  color: var(--bs-primary);
} 