/* ============================================
   PORTFOLIO PAGE STYLES
   ============================================ */

/* Hero Section */
.portfolio-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #1f1144 50%, #302b63 100%);
  padding: 100px 5% 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-badge-p {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  margin-top: 0.5rem;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, #6c63ff 0%, #ff6b6b 100%);
  top: -150px;
  left: -100px;
  animation: floatOrb 10s ease-in-out infinite;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #ffdd57 0%, #6c63ff 100%);
  bottom: -100px;
  right: -50px;
  animation: floatOrb 10s ease-in-out infinite 5s;
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -50px) scale(1.1); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: none;
}

.hero-badge {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50px;
  color: #ffdd57;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.portfolio-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: white;
  margin: 0 0 1rem;
  line-height: 1.1;
}

.text-gradient {
  background: linear-gradient(135deg, #6c63ff 0%, #ff6b6b 50%, #ffdd57 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 5s ease infinite;
  background-size: 200% 200%;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.portfolio-hero p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.8);
  margin: 0;
}

/* ============================================
   PORTFOLIO GALLERY
   ============================================ */

.portfolio-gallery {
  padding: 80px 5%;
  background: white;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

.container {
  max-width: none;
  margin: 0 auto;
  padding: 0;
}

.portfolio-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)) !important;
  gap: 24px !important;
  max-width: none !important;
  margin: 0 auto !important;
  padding: 40px !important;
}

.portfolio-item {
  position: relative !important;
  overflow: hidden !important;
  background: #1a1a2e !important;
  border-radius: 20px !important;
  aspect-ratio: 16 / 10 !important;
  cursor: pointer !important;
  transition: all 0.4s ease !important;
  max-width: 100% !important;
  min-height: 200px !important;
  height: auto !important;
}

.portfolio-item:hover {
  transform: scale(1.02);
  box-shadow: 0 25px 50px rgba(0,0,0,0.4);
}

.portfolio-item.v-stretch {
  grid-row: span 1;
  aspect-ratio: 16 / 12;
}

.media-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.media-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.portfolio-item:hover .media-wrapper img {
  transform: scale(1.1);
}

/* Full bleed overlay - always visible */
.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  opacity: 1;
}

.portfolio-item:hover .project-overlay {
  opacity: 1;
}

/* Project info inside overlay */
.project-info {
  color: white;
}

.project-info h3 {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 8px 0;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.project-info p {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  margin: 0;
  text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}

.project-stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.4s ease 0.2s;
}

.portfolio-item:hover .project-stats {
  transform: translateY(0);
  opacity: 1;
}

.project-stats span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: #ffdd57;
  background: rgba(255,255,255,0.1);
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
}

.project-stats span i {
  font-size: 0.75rem;
}

/* ============================================
   RESULTS SECTION
   ============================================ */

.results-section {
  padding: 80px 5%;
  background: linear-gradient(180deg, #f8f9fa 0%, #fff 100%);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: rgba(108, 99, 255, 0.1);
  border: 1px solid rgba(108, 99, 255, 0.2);
  border-radius: 50px;
  color: #6c63ff;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #1a1a2e;
  margin: 0;
  line-height: 1.2;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: none;
  margin: 0 auto;
}

.result-card {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.result-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.result-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #6c63ff 0%, #5652d4 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.result-icon i {
  font-size: 1.5rem;
  color: white;
}

.result-number {
  font-size: 3rem;
  font-weight: 700;
  color: #6c63ff;
  margin-bottom: 0.25rem;
}

.result-label {
  color: #666;
  font-size: 0.95rem;
}

/* ============================================
   TESTIMONIALS
   ============================================ */

.testimonials-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #1f1144 100%);
  color: white;
}

.testimonials-section .section-badge {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  color: #ffdd57;
}

.testimonials-section .section-title {
  color: white;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 2.5rem;
  transition: all 0.3s ease;
  opacity: 1;
}

.testimonial-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-5px);
}

.quote-icon {
  margin-bottom: 1rem;
}

.quote-icon i {
  font-size: 1.5rem;
  color: #ffdd57;
}

.testimonial-content p {
  font-size: 1.05rem;
  line-height: 1.7;
  font-style: italic;
  margin: 0 0 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info h4 {
  margin: 0;
  font-size: 1rem;
  color: white;
}

.author-info span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
  background: linear-gradient(135deg, #6c63ff 0%, #ff6b6b 100%);
  position: relative;
  overflow: hidden;
  padding: 80px 5%;
}

.cta-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.cta-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.3;
}

.cta-orb.orb-1 {
  width: 300px;
  height: 300px;
  background: white;
  top: -100px;
  left: -100px;
  animation: floatOrb 8s ease-in-out infinite;
}

.cta-orb.orb-2 {
  width: 250px;
  height: 250px;
  background: white;
  bottom: -80px;
  right: -50px;
  animation: floatOrb 8s ease-in-out infinite 4s;
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: none;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: white;
  margin: 0 0 1rem;
}

.cta-content p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
  margin: 0 0 2rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
  font-family: 'SEGO', 'Segoe UI', system-ui, sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: white;
  color: #6c63ff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.btn-primary i {
  transition: transform 0.3s ease;
}

.btn-primary:hover i {
  transform: translateX(5px);
}

.btn-large {
  padding: 1.1rem 2.5rem;
  font-size: 1.05rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reveal-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .portfolio-hero {
    min-height: 40vh;
    padding: 80px 3% 40px;
  }
  
  .portfolio-hero h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
  }
  
  .portfolio-hero p {
    font-size: 0.95rem !important;
  }
  
  .section-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    line-height: 1.3;
  }
  
  .section-subtitle {
    font-size: 0.9rem;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
    overflow-x: hidden;
    padding: 15px !important;
    width: 100% !important;
    max-width: 100vw !important;
  }
  
  .portfolio-item {
    width: 100% !important;
    min-height: 280px !important;
    max-width: 100% !important;
    aspect-ratio: unset !important;
  }
  
  .portfolio-item.v-stretch {
    grid-row: span 1;
    aspect-ratio: 16 / 9;
  }
  
  .project-card h3 {
    font-size: 1rem;
  }
  
  .project-card p {
    font-size: 0.85rem;
  }
  
  .result-number {
    font-size: 1.8rem;
  }
  
  .quote-icon i {
    font-size: 1.2rem;
  }
  
  .testimonial-content p {
    font-size: 0.9rem !important;
  }
  
  .author-info span {
    font-size: 0.8rem;
  }
  
  .cta-content h2 {
    font-size: 1.3rem;
  }
  
  .cta-content p {
    font-size: 0.9rem !important;
  }
}

@media (max-width: 480px) {
  .results-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .result-number {
    font-size: 2rem;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
