/* =============================================
   OUR WORK SECTION — REDESIGN
   Improved visual hierarchy, balance, and flow
   ============================================= */

/* Reduce heading size by 18% for better balance */
.home1-portfolio-section .section-title.three h2 {
  font-size: 42px !important; /* Reduced from ~52px */
  line-height: 1.15 !important;
  letter-spacing: -0.02em !important;
  max-width: 520px !important; /* Tighter wrap for better vertical flow */
  margin-bottom: 8px !important; /* Reduce excessive space below */
}

@media (max-width: 1399px) {
  .home1-portfolio-section .section-title.three h2 {
    font-size: 38px !important;
    max-width: 480px !important;
  }
}

@media (max-width: 1199px) {
  .home1-portfolio-section .section-title.three h2 {
    font-size: 34px !important;
    max-width: 100% !important;
  }
}

@media (max-width: 767px) {
  .home1-portfolio-section .section-title.three h2 {
    font-size: 28px !important;
  }
}

/* Improve section label spacing and connection */
.home1-portfolio-section .section-title.three .left-content > span {
  margin-bottom: 16px !important; /* Better spacing to headline */
  display: inline-block !important;
}

/* Remove excessive empty space and improve layout flow */
.home1-portfolio-section .section-title.three .left-content {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  padding-right: 40px !important; /* Add breathing room from right column */
}

@media (max-width: 1199px) {
  .home1-portfolio-section .section-title.three .left-content {
    padding-right: 0 !important;
    margin-bottom: 24px !important;
  }
}

/* Right content: improve alignment and connection */
.home1-portfolio-section .section-title.three .right-content {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  gap: 20px !important;
  padding-top: 4px !important; /* Align with headline baseline */
}

@media (max-width: 1199px) {
  .home1-portfolio-section .section-title.three .right-content {
    padding-top: 0 !important;
  }
}

/* Description text: improve visual hierarchy */
.home1-portfolio-section .section-title.three .right-content p {
  margin-bottom: 0 !important; /* Remove extra space, controlled by flex gap */
  font-size: 17px !important;
  line-height: 1.6 !important;
  color: var(--text-color) !important;
  max-width: 420px !important;
}

@media (max-width: 1199px) {
  .home1-portfolio-section .section-title.three .right-content p {
    max-width: 100% !important;
  }
}

/* REMOVE: Long orange horizontal bar (disconnected design element) */
.home1-portfolio-section
  .section-title.three
  .right-content
  .view-more-btn::before {
  display: none !important; /* Completely remove the bar */
}

/* REPLACE WITH: Clear CTA button with orange accent */
.home1-portfolio-section .section-title.three .right-content .view-more-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  width: fit-content !important;
  padding: 13px 28px !important;
  background: rgba(255, 90, 0, 0.08) !important;
  border: 1.5px solid rgba(255, 90, 0, 0.3) !important;
  border-radius: 8px !important;
  color: #ff5a00 !important;
  font-family: var(--font-inter) !important;
  font-weight: 500 !important;
  font-size: 15px !important;
  line-height: 1 !important;
  letter-spacing: -0.01em !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  text-decoration: none !important;
  position: relative !important;
  overflow: hidden !important;
  box-shadow: 0 0 16px rgba(255, 90, 0, 0.12) !important; /* Subtle toned-down glow */
}

/* Hover state: enhance without overpowering */
.home1-portfolio-section
  .section-title.three
  .right-content
  .view-more-btn:hover {
  background: rgba(255, 90, 0, 0.14) !important;
  border-color: rgba(255, 90, 0, 0.5) !important;
  box-shadow: 0 0 24px rgba(255, 90, 0, 0.2) !important; /* Gentle glow increase */
  transform: translateY(-2px) !important;
}

/* Arrow icon styling */
.home1-portfolio-section
  .section-title.three
  .right-content
  .view-more-btn
  .arrow {
  fill: #ff5a00 !important;
  width: 18px !important;
  height: 18px !important;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.home1-portfolio-section
  .section-title.three
  .right-content
  .view-more-btn:hover
  .arrow {
  transform: rotate(45deg) !important;
}

/* Active/Focus state for accessibility */
.home1-portfolio-section
  .section-title.three
  .right-content
  .view-more-btn:active,
.home1-portfolio-section
  .section-title.three
  .right-content
  .view-more-btn:focus {
  outline: 2px solid rgba(255, 90, 0, 0.4) !important;
  outline-offset: 3px !important;
}

/* Light mode adjustments */
body:not(.dark)
  .home1-portfolio-section
  .section-title.three
  .right-content
  .view-more-btn {
  background: rgba(255, 90, 0, 0.06) !important;
  border-color: rgba(255, 90, 0, 0.25) !important;
  color: #e04f00 !important;
  box-shadow: 0 2px 8px rgba(255, 90, 0, 0.12) !important;
}

body:not(.dark)
  .home1-portfolio-section
  .section-title.three
  .right-content
  .view-more-btn:hover {
  background: rgba(255, 90, 0, 0.12) !important;
  border-color: rgba(255, 90, 0, 0.4) !important;
  box-shadow: 0 4px 16px rgba(255, 90, 0, 0.18) !important;
}

body:not(.dark)
  .home1-portfolio-section
  .section-title.three
  .right-content
  .view-more-btn
  .arrow {
  fill: #e04f00 !important;
}

/* Responsive: ensure mobile experience is clean */
@media (max-width: 1199px) {
  .home1-portfolio-section .section-title.three .right-content .view-more-btn {
    justify-content: center !important;
    width: auto !important;
    padding: 12px 24px !important;
  }
}

@media (max-width: 576px) {
  .home1-portfolio-section .section-title.three .right-content .view-more-btn {
    width: 100% !important;
    font-size: 14px !important;
    padding: 11px 20px !important;
  }
}

/* Visual flow improvement: strengthen hierarchy from label → headline → description → CTA */
.home1-portfolio-section .section-title.three {
  margin-bottom: 50px !important; /* Better spacing to content cards */
}

@media (max-width: 1199px) {
  .home1-portfolio-section .section-title.three {
    margin-bottom: 40px !important;
  }
}

/* Subtle animation on scroll reveal (optional enhancement) */
@media (prefers-reduced-motion: no-preference) {
  .home1-portfolio-section .section-title.three .right-content .view-more-btn {
    transition:
      all 0.3s cubic-bezier(0.4, 0, 0.2, 1),
      box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }
}

/* Ensure proper grid background is maintained (per design requirements) */
.home1-portfolio-section {
  position: relative !important;
}

/* Dark mode: maintain dark premium aesthetic */
body.dark .home1-portfolio-section .section-title.three h2 {
  color: var(--white-color) !important;
}

body.dark .home1-portfolio-section .section-title.three .right-content p {
  color: rgba(255, 255, 255, 0.72) !important;
}

/* Accessibility: ensure proper contrast ratios */
@media (prefers-contrast: more) {
  .home1-portfolio-section .section-title.three .right-content .view-more-btn {
    border-width: 2px !important;
    font-weight: 600 !important;
  }
}

/* Print styles: simplify for print media */
@media print {
  .home1-portfolio-section .section-title.three .right-content .view-more-btn {
    border: 2px solid #000 !important;
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
  }
}
