/* Our Work Page Styles */

:root {
  --pale-blue: #acc1fc;
  --accent-yellow: #FF6F00;
  --dark-navy: #1f274e;
  --raisin-black: #1f2021;
  --off-white: #f9f6f1;
}

/* Hero Section */
.work-hero {
  background: linear-gradient(165deg, #ffffff 0%, #f8f9fa 100%);
  padding: 120px 20px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.work-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(172, 193, 252, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(255, 111, 0, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.work-hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.work-badge {
  display: inline-block;
  background: rgba(172, 193, 252, 0.15);
  color: var(--dark-navy);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
  border: 1px solid rgba(172, 193, 252, 0.4);
  font-family: 'Matter', sans-serif;
  animation: fadeInDown 0.6s ease-out;
}

.work-hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  font-family: 'Calsans', 'Matter', sans-serif;
  color: var(--raisin-black);
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.work-hero h1 .highlight {
  background: linear-gradient(135deg, var(--pale-blue), var(--accent-yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.work-hero p {
  font-size: 20px;
  line-height: 1.6;
  opacity: 0.8;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: var(--raisin-black);
  font-family: 'Matter', sans-serif;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.filter-btn {
  background: transparent;
  border: 2px solid #e5e7eb;
  color: var(--raisin-black);
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Matter', sans-serif;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--pale-blue);
  border-color: var(--pale-blue);
  color: var(--dark-navy);
}

/* Portfolio Section */
.portfolio-section {
  padding: 80px 20px;
  background: #ffffff;
}

.portfolio-container {
  max-width: 1200px;
  margin: 0 auto;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.portfolio-card {
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
  animation-delay: calc(var(--item-index, 0) * 0.1s + 0.3s);
}

.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: var(--pale-blue);
}

.portfolio-image {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--pale-blue), var(--accent-yellow));
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.portfolio-card:hover .portfolio-image img {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-meta {
  display: flex;
  gap: 12px;
}

.project-category {
  display: inline-block;
  background: var(--accent-yellow);
  color: #ffffff;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.portfolio-content {
  padding: 32px;
}

.portfolio-content h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--raisin-black);
  font-family: 'Calsans', 'Matter', sans-serif;
}

.portfolio-content p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--raisin-black);
  opacity: 0.7;
  margin-bottom: 24px;
  font-family: 'Matter', sans-serif;
}

.portfolio-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
}

.stat {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--pale-blue);
  font-family: 'Matter', sans-serif;
}

.stat-label {
  display: block;
  font-size: 12px;
  color: var(--raisin-black);
  opacity: 0.6;
  margin-top: 4px;
  font-family: 'Matter', sans-serif;
}

.portfolio-link {
  display: inline-block;
  color: var(--pale-blue);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s ease;
  font-family: 'Matter', sans-serif;
}

.portfolio-link:hover {
  color: var(--accent-yellow);
  transform: translateX(4px);
}

/* Stats Section */
.work-stats {
  padding: 80px 20px;
  background: linear-gradient(135deg, var(--pale-blue), var(--accent-yellow));
}

.stats-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

.stat-card {
  text-align: center;
  color: #ffffff;
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
  animation-delay: calc(var(--item-index, 0) * 0.15s);
}

.stat-number {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  margin-bottom: 8px;
  font-family: 'Calsans', 'Matter', sans-serif;
}

.stat-desc {
  font-size: 18px;
  opacity: 0.95;
  font-family: 'Matter', sans-serif;
}

/* Testimonials Section */
.testimonials-section {
  padding: 80px 20px;
  background: #ffffff;
}

.testimonials-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.mono-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--pale-blue);
  margin-bottom: 16px;
  text-transform: uppercase;
  font-family: 'Matter', sans-serif;
}

.section-header h2 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
  color: var(--raisin-black);
  font-family: 'Calsans', 'Matter', sans-serif;
}

.section-header p {
  font-size: 18px;
  color: var(--raisin-black);
  opacity: 0.7;
  max-width: 700px;
  margin: 0 auto;
  font-family: 'Matter', sans-serif;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.testimonial-card {
  padding: 32px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  transition: all 0.4s ease;
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
  animation-delay: calc(var(--item-index, 0) * 0.1s);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: var(--pale-blue);
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-rating {
  font-size: 14px;
  color: var(--accent-yellow);
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--raisin-black);
  opacity: 0.8;
  margin-bottom: 24px;
  font-style: italic;
  font-family: 'Matter', sans-serif;
}

.testimonial-author {
  border-top: 1px solid #e5e7eb;
  padding-top: 16px;
}

.author-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--raisin-black);
  margin-bottom: 4px;
  font-family: 'Matter', sans-serif;
}

.author-title {
  font-size: 13px;
  color: var(--raisin-black);
  opacity: 0.6;
  font-family: 'Matter', sans-serif;
}

/* CTA Section */
.work-cta {
  padding: 100px 20px;
  background: linear-gradient(135deg, var(--pale-blue), var(--accent-yellow));
  text-align: center;
  color: #ffffff;
  animation: fadeIn 0.8s ease-out;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  margin-bottom: 20px;
  font-family: 'Calsans', 'Matter', sans-serif;
}

.cta-content p {
  font-size: 20px;
  margin-bottom: 32px;
  opacity: 0.95;
  font-family: 'Matter', sans-serif;
}

.cta-btn {
  display: inline-block;
  background: var(--dark-navy);
  color: #ffffff;
  padding: 16px 40px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  font-family: 'Matter', sans-serif;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  background: var(--raisin-black);
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Intersection Observer for scroll animations */
.portfolio-card[data-visible="true"] {
  animation: fadeInUp 0.6s ease-out forwards;
}

.testimonial-card[data-visible="true"] {
  animation: fadeInUp 0.6s ease-out forwards;
}

.stat-card[data-visible="true"] {
  animation: fadeInUp 0.8s ease-out forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
  .work-hero {
    padding: 80px 20px 60px;
  }

  .work-hero h1 {
    font-size: 36px;
  }

  .hero-filters {
    gap: 8px;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 12px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .portfolio-image {
    height: 200px;
  }

  .portfolio-stats {
    grid-template-columns: 1fr 1fr;
  }

  .stats-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .stat-number {
    font-size: 32px;
  }

  .stat-desc {
    font-size: 14px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .work-stats {
    padding: 60px 20px;
  }

  .testimonials-section {
    padding: 60px 20px;
  }

  .work-cta {
    padding: 80px 20px;
  }

  .cta-content h2 {
    font-size: 32px;
  }
}

/* Accessibility */
.filter-btn:focus,
.cta-btn:focus {
  outline: 2px solid var(--pale-blue);
  outline-offset: 2px;
}

/* Scroll triggers */
.scroll-animate {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}
