/*!
  * Item: Kitzu
  * Description: Personal Portfolio Template
  * Author/Developer: Exill
  * Author/Developer URL: https://themeforest.net/user/exill
  * Version: v2.0.0
  * License: Themeforest Standard Licenses: https://themeforest.net/licenses
  */

/* Portfolio Card Styles */
.portfolio-card {
  background-color: #1a1a1a;
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #2a2a2a;
  display: flex;
  flex-direction: column;
}

.portfolio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
  border-color: #333;
}

.portfolio-img {
  position: relative;
  width: 100%;
  height: 140px;
  /* Adjusted for responsive view */
  overflow: hidden;
}

@media (min-width: 992px) {
  .portfolio-img {
    height: 160px;
    /* Taller on desktop */
  }
}

.portfolio-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-img img {
  transform: scale(1.05);
  /* Subtle zoom on hover */
}

.portfolio-content {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.portfolio-title {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
}

.portfolio-desc {
  color: #a0a0a0;
  font-size: 13px;
  margin-bottom: 15px;
  line-height: 1.5;
  flex-grow: 1;
  /* Pushes button to bottom */
}

.view-project-btn {
  background-color: #252525;
  color: #fff;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 8px 15px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  width: 100%;
  transition: all 0.2s ease;
  text-transform: capitalize;
}

.view-project-btn:hover {
  background-color: #28a745;
  border-color: #28a745;
  color: #fff;
}


/* Project Modal Styles */
/* Project Modal Styles */
.lity-content .project-modal {
  background-color: transparent !important;
  /* Remove background from wrapper */
  padding: 0;
  max-width: 800px;
  width: 90%;
  border-radius: 0;
  box-shadow: none;
  border: none;
}

@media (max-width: 768px) {
  .lity-content .project-modal {
    width: 100%;
  }
}

/* New Container Style to override Bootstrap */
.project-details-box {
  background-color: #1a1a1a;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border: 1px solid #333;
  position: relative;
  overflow: hidden;
}

/* Decorative top border */
.project-details-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #28a745, #218c3a);
}

.project-details-box .modal-title {
  color: #ffffff;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 15px;
  letter-spacing: 0.5px;
}

.project-details-box .modal-description {
  color: #b0b0b0;
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 30px;
  border-bottom: 1px solid #2a2a2a;
  padding-bottom: 20px;
}

.project-details-box .modal-subtitle {
  color: #28a745;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.project-details-box .modal-list {
  background: #222;
  padding: 20px;
  border-radius: 8px;
  list-style: none;
  margin-bottom: 30px;
}

.project-details-box .modal-list li {
  color: #dcdcdc;
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  font-size: 15px;
}

.project-details-box .modal-list li:last-child {
  margin-bottom: 0;
}

.project-details-box .modal-list li::before {
  content: "\f3d1";
  /* ion-md-checkmark */
  font-family: "Ionicons";
  color: #28a745;
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 18px;
}

.project-details-box .modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.project-details-box .modal-tags span {
  background: #252525;
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  border-left: 2px solid #28a745;
}

.project-details-box .modal-link {
  text-align: right;
  margin-top: 20px;
}

.project-details-box .modal-link .btn {
  background-color: #28a745;
  color: #fff;
  border: none;
  padding: 10px 30px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.project-details-box .modal-link .btn:hover {
  background-color: #218838;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(40, 167, 69, 0.4);
}

@media (max-width: 768px) {
  .project-details-box {
    padding: 25px;
  }

  .project-details-box .modal-title {
    font-size: 24px;
  }
}

/* =========================================
   NEW BLOG MODAL STYLES
   ========================================= */
.blog-modal-wrapper {
  background-color: #121212;
  /* Darker background */
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  max-width: 900px;
  margin: 0 auto;
}

.blog-hero {
  position: relative;
  height: 350px;
  overflow: hidden;
}

.blog-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.blog-hero:hover img {
  transform: scale(1.05);
}

.blog-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(to bottom, transparent 0%, rgba(18, 18, 18, 0.9) 75%, #121212 100%);
  display: flex;
  align-items: flex-end;
  padding: 40px;
}

.blog-meta-badge {
  background: rgba(40, 167, 69, 0.2);
  color: #28a745;
  border: 1px solid rgba(40, 167, 69, 0.3);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  backdrop-filter: blur(5px);
  display: inline-block;
  margin-bottom: 20px;
}

.blog-title {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.blog-meta-info {
  display: flex;
  align-items: center;
  gap: 25px;
  font-size: 14px;
  color: #b0b0b0;
}

.blog-meta-info span {
  display: flex;
  align-items: center;
}

.blog-meta-info i {
  color: #28a745;
  margin-right: 8px;
  font-size: 16px;
}

.blog-content-body {
  padding: 20px 50px 50px 50px;
  /* Top padding reduced since hero blends */
  background: #121212;
}

.blog-text {
  font-size: 18px;
  line-height: 1.8;
  color: #d0d0d0;
}

.blog-text p {
  margin-bottom: 24px;
}

.blog-text h2,
.blog-text h3 {
  color: #fff;
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 700;
}

.blog-cta-box {
  margin: 60px 0 20px 0;
  background: linear-gradient(135deg, #1e1e1e 0%, #252525 100%);
  border: 1px solid #333;
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.blog-cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #28a745, #218c3a);
}

/* Scrollbar for modal */
.lity-content::-webkit-scrollbar {
  width: 8px;
}

.lity-content::-webkit-scrollbar-track {
  background: #121212;
}

.lity-content::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}

.lity-content::-webkit-scrollbar-thumb:hover {
  background: #28a745;
}

@media (max-width: 768px) {
  .blog-title {
    font-size: 24px;
  }

  .blog-content-body {
    padding: 20px 25px;
  }

  .blog-hero {
    height: 250px;
  }
}