/* ============================================
   SERVICE PORTFOLIO - ZIGZAG LAYOUT
   Professional, Premium Design
   ============================================ */

/* --- HERO SECTION --- */
.portfolio-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ffffff 0%, #fff8f0 50%, #ffffff 100%);
  overflow: hidden;
  padding: 8rem 0 4rem;
}

.portfolio-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,106,0,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(0,102,255,0.06) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(124,58,237,0.05) 0%, transparent 50%);
  pointer-events: none;
  animation: bgShift 20s ease-in-out infinite;
}

@keyframes bgShift {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.1); }
}

.crew-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,106,0,0.1);
  border: 1px solid rgba(255,106,0,0.2);
  color: #FF6A00;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.portfolio-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

.portfolio-hero h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  color: #0d1b3e;
  margin-bottom: 1.25rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.portfolio-hero h1 .highlight {
  background: linear-gradient(90deg, #FF6A00, #FF9500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.portfolio-hero p {
  max-width: 620px;
  margin: 0 auto 2.5rem;
  font-size: 1.1rem;
  line-height: 1.75;
  color: #556;
}

.portfolio-stats {
  display: flex;
  gap: 3rem;
  justify-content: center;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: #FF6A00;
  display: block;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.95rem;
  color: #667085;
  font-weight: 500;
}

/* --- PORTFOLIO GRID SECTION --- */
.portfolio-section {
  padding: 6rem 0;
  background: #ffffff;
  position: relative;
}

.portfolio-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- ZIGZAG LAYOUT --- */
.portfolio-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 8rem;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

.portfolio-item:nth-child(1) { animation-delay: 0.1s; }
.portfolio-item:nth-child(2) { animation-delay: 0.2s; }
.portfolio-item:nth-child(3) { animation-delay: 0.3s; }
.portfolio-item:nth-child(4) { animation-delay: 0.4s; }
.portfolio-item:nth-child(5) { animation-delay: 0.5s; }
.portfolio-item:nth-child(6) { animation-delay: 0.6s; }

/* Reverse layout for even items (zigzag effect) */
.portfolio-item:nth-child(even) {
  direction: rtl;
}

.portfolio-item:nth-child(even) > * {
  direction: ltr;
}

/* --- MEDIA CONTAINER --- */

.portfolio-media {
  position: relative;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
  animation: floatUp 5.5s ease-in-out infinite;
}
@keyframes floatUp {
  0% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0); }
}



.portfolio-media:hover {
  transform: translateY(-5px) scale(1.02);
}






/* Image Styles */

.portfolio-media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  max-height: 500px;
}


/* Video Styles */
.portfolio-media video {
  width: 100%;
  height: auto;
  display: block;
  min-height: 400px;
  max-height: 500px;
  object-fit: cover;
}

/* YouTube Embed Container */
.youtube-embed {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.youtube-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Media Type Badge */
.media-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #0D1B3D;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.media-badge svg {
  width: 16px;
  height: 16px;
}

/* --- CONTENT CONTAINER --- */
.portfolio-content {
  padding: 2rem 0;
}

.portfolio-number {
  font-size: 1rem;
  font-weight: 700;
  color: #FF6A00;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  display: block;
}

.portfolio-content h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #0D1B3D;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.portfolio-subtitle {
  font-size: 1.1rem;
  color: #667085;
  font-weight: 500;
  margin-bottom: 1.5rem;
  display: block;
}

.portfolio-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #667085;
  margin-bottom: 2rem;
}

/* Features List */
.portfolio-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: #0D1B3D;
  font-weight: 500;
}

.feature-item::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #FF6A00;
  border-radius: 50%;
  flex-shrink: 0;
}

/* CTA Button */
.portfolio-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: linear-gradient(135deg, #FF6A00 0%, #FFA400 100%);
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(255, 106, 0, 0.3);
  margin-top: 1.5rem;
}

.portfolio-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 106, 0, 0.4);
  background: linear-gradient(135deg, #E05D00 0%, #E09000 100%);
}

.portfolio-cta svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.portfolio-cta:hover svg {
  transform: translateX(4px);
}

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
  .portfolio-hero h1 {
    font-size: 3rem;
  }

  .portfolio-item {
    gap: 3rem;
    margin-bottom: 6rem;
  }

  .portfolio-content h2 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .portfolio-hero {
    padding: 6rem 0 3rem;
    min-height: 60vh;
  }

  .portfolio-hero h1 {
    font-size: 2.5rem;
  }

  .portfolio-hero p {
    font-size: 1.1rem;
  }

  .portfolio-stats {
    gap: 2rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  /* Stack layout on mobile */
  .portfolio-item {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
  }

  .portfolio-item:nth-child(even) {
    direction: ltr;
  }

  .portfolio-media img,
  .portfolio-media video {
    min-height: 300px;
    max-height: 400px;
  }

  .portfolio-content h2 {
    font-size: 1.75rem;
  }

  .portfolio-features {
    grid-template-columns: 1fr;
  }

  .portfolio-stats-row {
    flex-direction: column;
    gap: 1.5rem;
  }

  .media-badge {
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .portfolio-hero h1 {
    font-size: 2rem;
  }

  .portfolio-hero p {
    font-size: 1rem;
  }

  .portfolio-container {
    padding: 0 1rem;
  }

  .portfolio-content h2 {
    font-size: 1.5rem;
  }

  .portfolio-cta {
    width: 100%;
    justify-content: center;
  }
}

/* --- LOADING STATES --- */
.portfolio-item.loading 

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* --- ACCESSIBILITY --- */
.portfolio-media:focus-within {
  outline: 3px solid #FF6A00;
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-item,
  .portfolio-media,
  .portfolio-cta {
    animation: none;
    transition: none;
  }
}

/* --- PRINT STYLES --- */
@media print {
  .portfolio-hero {
    background: #ffffff;
    color: #0D1B3D;
    min-height: auto;
    padding: 2rem 0;
  }

  .portfolio-hero h1,
  .portfolio-hero p {
    color: #0D1B3D;
  }

  .portfolio-item {
    page-break-inside: avoid;
    margin-bottom: 3rem;
  }

  .portfolio-cta {
    display: none;
  }
}

/* Made with Bob */
