/* ==========================================================================
   Hexaforge Technologies – Portfolio & Case Study Redesign Styles
   portfolio-redesign.css
   ========================================================================== */

/* Modern CSS variables for themed details */
:root {
  --primary-gradient: linear-gradient(135deg, #1e3347 0%, #2c455a 100%);
  --accent-blue: #4c8fad;
  --accent-blue-light: #78c8f0;
  
  /* Project Specific Themes */
  --theme-pursue-grad: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  --theme-pursue-glow: rgba(79, 172, 254, 0.4);
  
  --theme-brova-grad: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --theme-brova-glow: rgba(245, 87, 108, 0.4);
  
  --theme-rtd-grad: linear-gradient(135deg, #0df2c9 0%, #3a7bd5 100%);
  --theme-rtd-glow: rgba(13, 242, 201, 0.4);
  
  --theme-sipinor-grad: linear-gradient(135deg, #f9d423 0%, #ff4e50 100%);
  --theme-sipinor-glow: rgba(255, 78, 80, 0.4);
}

/* ==========================================================================
   GLOBAL & ANIMATION UTILITIES
   ========================================================================== */
.text-gradient {
  background: linear-gradient(135deg, #4c8fad, #78c8f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hover-lift {
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
}
.hover-lift:hover {
  transform: translateY(-8px);
}

.glass-panel {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-panel-light {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.05);
}

/* Glow effects for each theme */
.glow-pursue { box-shadow: 0 10px 30px var(--theme-pursue-glow); }
.glow-brova { box-shadow: 0 10px 30px var(--theme-brova-glow); }
.glow-rtd { box-shadow: 0 10px 30px var(--theme-rtd-glow); }
.glow-sipinor { box-shadow: 0 10px 30px var(--theme-sipinor-glow); }

/* Badge Styles */
.section-tag-light {
  display: inline-block;
  color: rgba(255, 255, 255, 0.85) !important;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 5px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

/* ==========================================================================
   PORTFOLIO FILTERS (ISOTOPE)
   ========================================================================== */
.portfolio-filters-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 45px;
}

.portfolio-filters-new {
  display: inline-flex;
  background: rgba(44, 69, 90, 0.06);
  padding: 6px;
  border-radius: 50px;
  list-style: none;
  gap: 5px;
}

.portfolio-filters-new li {
  padding: 10px 24px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #555;
  cursor: pointer;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  user-select: none;
}

.portfolio-filters-new li:hover {
  color: #1e3347;
  background: rgba(44, 69, 90, 0.05);
}

.portfolio-filters-new li.filter-active {
  background: #2c455a;
  color: #fff !important;
  box-shadow: 0 4px 15px rgba(44, 69, 90, 0.25);
}

/* ==========================================================================
   PORTFOLIO CARD REDESIGN
   ========================================================================== */
.portfolio-card-redesign {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.portfolio-card-redesign:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(44, 69, 90, 0.15);
  border-color: rgba(76, 143, 173, 0.25);
}

.portfolio-card-redesign .img-wrap {
  position: relative;
  aspect-ratio: 16/11;
  overflow: hidden;
  background: #f8fafc;
}

.portfolio-card-redesign .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.portfolio-card-redesign:hover .img-wrap img {
  transform: scale(1.08);
}

.portfolio-card-redesign .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30, 51, 71, 0.1) 0%, rgba(30, 51, 71, 0.85) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.portfolio-card-redesign:hover .card-overlay {
  opacity: 1;
}

.portfolio-card-redesign .overlay-actions {
  display: flex;
  gap: 12px;
  width: 100%;
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.portfolio-card-redesign:hover .overlay-actions {
  transform: translateY(0);
}

.action-btn {
  width: 46px;
  height: 46px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2c455a;
  font-size: 1.15rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.action-btn:hover {
  background: #2c455a;
  color: #fff;
  transform: scale(1.1);
}

.action-btn-large {
  flex: 1;
  height: 46px;
  background: #fff;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #2c455a;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.action-btn-large:hover {
  background: #4c8fad;
  color: #fff;
  transform: translateY(-2px);
}

.card-tag {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  z-index: 5;
}

.tag-app {
  background: rgba(76, 143, 173, 0.95);
  color: #fff;
}

.tag-web {
  background: rgba(44, 69, 90, 0.95);
  color: #fff;
}

.portfolio-card-redesign .card-body-new {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.portfolio-card-redesign .card-body-new h4 {
  font-size: 1.2rem;
  font-weight: 750;
  color: #1a2d3d;
  margin-bottom: 8px;
  line-height: 1.35;
  transition: color 0.3s;
}

.portfolio-card-redesign:hover .card-body-new h4 {
  color: #4c8fad;
}

.portfolio-card-redesign .card-body-new p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 18px;
  flex: 1;
}

.card-result-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(44, 69, 90, 0.04);
  border-left: 3px solid #2c455a;
  padding: 10px 14px;
  border-radius: 0 10px 10px 0;
  font-size: 0.82rem;
  color: #444;
  font-weight: 500;
}

.card-result-badge i {
  color: #2c455a;
  font-size: 0.95rem;
}

/* ==========================================================================
   CASE STUDY DETAIL PAGES Layout
   ========================================================================== */
.case-study-header {
  padding-top: 140px;
  padding-bottom: 60px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.case-study-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30, 51, 71, 0.95) 0%, rgba(18, 33, 46, 0.98) 100%);
}

.case-study-hero-content {
  position: relative;
  z-index: 5;
  color: #ffffff !important;
  text-align: center;
}

.case-study-hero-content h1 {
  color: #ffffff !important;
  font-size: 3rem;
  font-weight: 850;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.case-study-hero-content p {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

/* Slider Design Styling – Premium Portrait Smartphone Mockup */
.device-slider-container {
  position: relative;
  max-width: 325px;
  margin: 0 auto 40px auto;
  border-radius: 38px;
  overflow: hidden;
  background: #0b151e;
  padding: 10px;
  border: 4px solid #1a2c3d;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45), inset 0 0 12px rgba(255, 255, 255, 0.12);
}

.device-slider-container::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 18px;
  background: #000;
  border-radius: 20px;
  z-index: 10;
  opacity: 0.9;
}

.portfolio-details-slider {
  border-radius: 28px;
  overflow: hidden;
}

.portfolio-details-slider img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 28px;
}

/* Metadata Card Styles */
.project-meta-card {
  background: #fff;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.project-meta-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 22px;
  color: #1a2d3d;
  border-bottom: 2px solid rgba(76, 143, 173, 0.1);
  padding-bottom: 12px;
  position: relative;
}

.project-meta-card h3::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 50px;
  height: 2px;
  background: #4c8fad;
}

.project-meta-list {
  list-style: none;
  padding: 0;
  margin: 0 0 25px 0;
}

.project-meta-list li {
  display: flex;
  gap: 15px;
  margin-bottom: 18px;
  font-size: 0.92rem;
  color: #555;
  line-height: 1.5;
}

.project-meta-list li:last-child {
  margin-bottom: 0;
}

.meta-icon-box {
  width: 38px;
  height: 38px;
  background: rgba(76, 143, 173, 0.1);
  color: #2c455a;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.project-meta-list li strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: #888;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.project-meta-list li span, 
.project-meta-list li a {
  font-weight: 700;
  color: #1e3347;
  text-decoration: none;
  font-size: 0.95rem;
}

.project-meta-list li a:hover {
  color: #4c8fad;
  text-decoration: underline;
}

/* Tech Badges */
.tech-badges-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.tech-badge {
  background: rgba(44, 69, 90, 0.05);
  color: #2c455a;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid rgba(44, 69, 90, 0.08);
  transition: all 0.25s;
}

.tech-badge:hover {
  background: #2c455a;
  color: #fff;
  transform: translateY(-1px);
}

/* ==========================================================================
   CASE STUDY SECTIONS
   ========================================================================== */
.case-study-body {
  padding: 70px 0;
  background: #fafbfc;
}

.case-section-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #1e3347;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.case-section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: #4c8fad;
  margin-top: 8px;
  border-radius: 3px;
}

.case-paragraph {
  font-size: 1rem;
  line-height: 1.75;
  color: #555;
  margin-bottom: 25px;
}

/* Key Features Lists */
.features-grid-new {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 25px;
}

@media (min-width: 768px) {
  .features-grid-new {
    grid-template-columns: 1fr 1fr;
  }
}

.feature-box-premium {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.04);
  display: flex;
  gap: 16px;
  transition: all 0.3s;
}

.feature-box-premium:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(44, 69, 90, 0.08);
  border-color: rgba(76, 143, 173, 0.2);
}

.feature-box-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.feature-box-premium h5 {
  font-size: 1.02rem;
  font-weight: 750;
  color: #1a2d3d;
  margin-bottom: 6px;
}

.feature-box-premium p {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* Outcomes Grid in Case Studies */
.outcomes-section-wrap {
  background: linear-gradient(160deg, #1e3347 0%, #12212e 100%);
  color: #fff;
  border-radius: 24px;
  padding: 45px;
  margin-top: 50px;
  box-shadow: 0 20px 50px rgba(18, 33, 46, 0.25);
  position: relative;
  overflow: hidden;
}

.outcomes-section-wrap::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(76, 143, 173, 0.15) 0%, transparent 70%);
  z-index: 1;
}

.outcomes-section-wrap h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 30px;
  position: relative;
  z-index: 5;
}

.outcomes-grid-container {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}

@media (min-width: 576px) {
  .outcomes-grid-container {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.outcome-card-new {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  transition: all 0.3s;
}

.outcome-card-new:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(76, 143, 173, 0.35);
  transform: translateY(-4px);
}

.outcome-card-number {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 8px;
}

.outcome-card-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  line-height: 1.4;
}

/* ==========================================================================
   NEXT PROJECT BANNER
   ========================================================================== */
.next-project-banner {
  background: linear-gradient(135deg, #2c455a 0%, #1e3347 100%);
  border-radius: 20px;
  padding: 50px 40px;
  text-align: center;
  color: #fff;
  margin-top: 70px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(30, 51, 71, 0.2);
  transition: all 0.4s ease;
  text-decoration: none;
  display: block;
}

.next-project-banner:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 60px rgba(30, 51, 71, 0.35);
}

.next-project-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #4c8fad, #78c8f0);
}

.next-project-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #78c8f0;
  margin-bottom: 12px;
}

.next-project-banner h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: #fff;
  transition: color 0.3s;
}

.next-project-banner:hover h2 {
  color: #78c8f0;
}

.next-project-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #2c455a !important;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 0.9rem;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.next-project-banner:hover .next-project-btn {
  background: #78c8f0;
  color: #12212e !important;
  transform: scale(1.05);
}
