/* ===================================
   PORTFOLIO PAGE STYLES
   =================================== */

/* Hero Section */
.portfolio-hero {
  min-height: 55vh;
  background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 100%);
  position: relative;
  overflow: hidden;
}

/* Subtle accent element */
.portfolio-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(58, 79, 122, 0.08) 0%, rgba(58, 79, 122, 0) 70%);
  border-radius: 50%;
  transform: translate(100px, -50px);
  pointer-events: none;
}

.portfolio-hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #3A4F7A 50%, transparent 100%);
  pointer-events: none;
}

.portfolio-hero > .container {
  position: relative;
  z-index: 1;
}

.portfolio-hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1a1a1a;
  letter-spacing: -0.5px;
  position: relative;
  display: inline-block;
}

.portfolio-hero h1::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #3A4F7A 0%, #3A4F7A 100%);
  border-radius: 2px;
}

.portfolio-hero p {
  font-size: 1.25rem;
  color: #555555;
  line-height: 1.6;
  margin-top: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Case Study */
.case-study {
  background: #ffffff;
  border: 1px solid #e5eaf0;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.case-study__header h2 {
  font-size: 2rem;
  margin: 0.75rem 0 0.5rem;
  color: #1a1a1a;
}

.case-study__summary {
  color: #4a4a4a;
  line-height: 1.6;
  max-width: 860px;
  margin-bottom: 1.5rem;
}

.case-study__tag {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  background: rgba(58, 79, 122, 0.08);
  color: #3a4f7a;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.2px;
}

.case-study__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.case-study__label {
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-size: 0.78rem;
  color: #4a4f58;
  margin-bottom: 0.35rem;
}

.case-study__text {
  color: #30343b;
  line-height: 1.5;
  margin: 0;
}

.case-study__list {
  margin: 0;
  padding-left: 1.1rem;
  color: #30343b;
  line-height: 1.5;
}

/* Process Section */
.process-section {
  background: #f7f9fb;
}

.process-header h2 {
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.process-subtitle {
  color: #4a4a4a;
  max-width: 800px;
  margin-bottom: 2rem;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.process-card {
  background: #ffffff;
  border: 1px solid #e5eaf0;
  border-radius: 8px;
  padding: 1.25rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.03);
  height: 100%;
}

.process-card h5 {
  color: #1f2a44;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.process-card p {
  color: #444a55;
  line-height: 1.55;
  margin: 0;
}

.pricing-hint {
  margin-top: 1.75rem;
  color: #1f2a44;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.9rem 1.2rem;
  border-radius: 8px;
  background: rgba(58, 79, 122, 0.08);
  border: 1px solid rgba(58, 79, 122, 0.15);
  display: inline-block;
}

/* Portfolio Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Portfolio Item Card */
.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background-color: #000000;
  cursor: pointer;
  aspect-ratio: 16 / 9;
}

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

.portfolio-card:hover img {
  transform: scale(1.05);
}

/* Portfolio Overlay */
.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.portfolio-overlay h5 {
  color: #ffffff;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.4;
}

.portfolio-overlay .portfolio-industry {
  color: #cccccc;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.portfolio-overlay p {
  color: #e0e0e0;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  line-height: 1.5;
}

/* Testimonials Section */
.testimonials-section h2 {
  margin-bottom: 2rem;
  font-weight: 700;
  color: #1a1a1a;
}

.testimonial-card {
  background-color: #f9f9f9;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  height: 100%;
}

.testimonial-card .card-body {
  padding: 1.5rem;
}

.testimonial-card .card-text {
  font-style: italic;
  color: #333333;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.testimonial-card .testimonial-name {
  font-weight: 600;
  color: #000000;
  margin-bottom: 0.25rem;
}

.testimonial-card .testimonial-role {
  font-size: 0.875rem;
  color: #666666;
}

.testimonials-note {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.875rem;
  color: #999999;
  font-style: italic;
}

/* Hero CTA Section */
.portfolio-cta {
  background-color: #1a1a1a;
  color: #ffffff;
  padding: 3rem 0;
}

.portfolio-cta h2 {
  color: #ffffff;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.portfolio-cta p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: #cccccc;
}

.portfolio-cta .btn-primary {
  background-color: #3a4f7a;
  border-color: #3a4f7a;
  padding: 0.75rem 2rem;
  font-weight: 500;
}

.portfolio-cta .btn-primary:hover {
  background-color: #2d3f61;
  border-color: #2d3f61;
}

.portfolio-cta .btn-secondary {
  color: #ffffff;
  border-color: #ffffff;
  background-color: transparent;
  padding: 0.75rem 2rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.portfolio-cta .btn-secondary:hover {
  background-color: #ffffff;
  color: #1a1a1a;
}

/* AOS Animation Delay */
.portfolio-card[data-aos-delay="100"] {
  animation-delay: 100ms;
}

.portfolio-card[data-aos-delay="200"] {
  animation-delay: 200ms;
}

.portfolio-card[data-aos-delay="300"] {
  animation-delay: 300ms;
}

.portfolio-card[data-aos-delay="400"] {
  animation-delay: 400ms;
}

.portfolio-card[data-aos-delay="500"] {
  animation-delay: 500ms;
}
