:root {
  --primary-color: #dc2626;
  --primary-gradient: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  --secondary-color: #000000;
  --accent-color: #ffffff;
  --light-gray: #f8f9fa;
  --dark-gray: #374151;
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --text-gradient: linear-gradient(135deg, #dc2626 0%, #991b1b 50%, #ffffff 100%);
  --shadow-primary: 0 20px 40px rgba(220, 38, 38, 0.3);
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', 'Open Sans', sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
  background: #000;
}

/* Hero Section */
.portfolio-hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a0a1a 25%, #2a1a2a 75%, #0a0a0a 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
      radial-gradient(2px 2px at 20% 30%, rgba(220, 38, 38, 0.4), transparent),
      radial-gradient(2px 2px at 40% 70%, rgba(255, 255, 255, 0.1), transparent),
      radial-gradient(1px 1px at 90% 40%, rgba(220, 38, 38, 0.3), transparent);
  background-repeat: repeat;
  background-size: 150px 100px;
  animation: particleFloat 25s linear infinite;
  opacity: 0.8;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(0, 0, 0, 0.4) 100%);
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(220, 38, 38, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease 0.5s both;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease 0.7s both;
  color: white;
}

.text-gradient {
  background: var(--text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease 0.9s both;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  animation: fadeInUp 1s ease 1.1s both;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

/* Filter Section */
.filter-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a1a2a 50%, #1a1a1a 100%);
  padding: 4rem 0;
  position: relative;
}

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  font-weight: 600;
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(220, 38, 38, 0.2), transparent);
  transition: left 0.6s ease;
}

.filter-btn:hover::before {
  left: 100%;
}

.filter-btn:hover,
.filter-btn.active {
  background: rgba(220, 38, 38, 0.2);
  border-color: rgba(220, 38, 38, 0.4);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(220, 38, 38, 0.3);
}

.filter-icon {
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.filter-btn:hover .filter-icon {
  transform: scale(1.2);
}

/* Portfolio Grid */
.portfolio-section {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a0a1a 25%, #2a1a2a 75%, #0a0a0a 100%);
  padding: 6rem 0;
  position: relative;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.portfolio-card {
  perspective: 1000px;
  height: 450px;
  transition: all 0.4s ease;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  cursor: pointer;
}

.portfolio-card:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.card-back {
  transform: rotateY(180deg);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.portfolio-image {
  position: relative;
  height: 300px;
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-image.luxury-car {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.portfolio-image.sports-car {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.portfolio-image.premium-suv {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.portfolio-image.office-building {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.portfolio-image.residential {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.portfolio-image.commercial {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.image-placeholder {
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

.image-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.project-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  z-index: 3;
}

.project-badge.premium {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.9), rgba(255, 165, 0, 0.9));
  color: #000;
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.project-badge.business {
  background: rgba(59, 130, 246, 0.9);
  color: white;
  box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

.project-badge.standard {
  background: rgba(34, 197, 94, 0.9);
  color: white;
  box-shadow: 0 5px 15px rgba(34, 197, 94, 0.4);
}

.project-category {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(220, 38, 38, 0.9);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.portfolio-content {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
}

.project-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: white;
}

.project-subtitle {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.project-specs {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
}

.spec-item i {
  color: var(--primary-color);
}

/* Card Back Content */
.back-content {
  width: 100%;
  color: white;
  text-align: left;
}

.project-details h5 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-weight: 600;
  text-align: center;
}

.details-list {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.details-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
}

.details-list i {
  color: var(--primary-color);
  width: 16px;
}

.project-stats {
  display: flex;
  justify-content: space-around;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(220, 38, 38, 0.1);
  border-radius: 15px;
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.stat {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.2rem;
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
}

.project-actions {
  text-align: center;
}

.btn-portfolio {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-portfolio:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(220, 38, 38, 0.4);
  color: white;
}

/* Success Stories Section */
.success-stories {
  background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 50%, #1a1a1a 100%);
  padding: 8rem 0;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.story-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.3s ease;
  color: white;
  text-align: center;
}

.story-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 60px rgba(220, 38, 38, 0.2);
  border-color: rgba(220, 38, 38, 0.3);
}

.story-avatar {
  width: 80px;
  height: 80px;
  background: var(--primary-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 2rem;
  color: white;
}

.story-quote {
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.story-author {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.story-role {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.stars {
  margin-top: 1rem;
}

.stars i {
  color: #ffc107;
  margin: 0 0.1rem;
}

/* Stats Section */
.portfolio-stats {
  background: linear-gradient(135deg, #2a1a2a 0%, #1a0a1a 50%, #0a0a0a 100%);
  padding: 6rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  transition: all 0.3s ease;
  color: white;
}

.stat-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 15px 40px rgba(220, 38, 38, 0.2);
  border-color: rgba(220, 38, 38, 0.3);
}

.stat-card .stat-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  flex-shrink: 0;
  box-shadow: 0 10px 25px rgba(220, 38, 38, 0.4);
}

.stat-card .stat-content .stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.2rem;
}

.stat-card .stat-content .stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  padding: 6rem 0;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.cta-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
      radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, 0.2), transparent),
      radial-gradient(1px 1px at 80% 70%, rgba(255, 255, 255, 0.1), transparent);
  background-repeat: repeat;
  background-size: 50px 40px;
  animation: particleFloat 20s linear infinite;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.2rem 2.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-cta:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  color: white;
}

/* Animations */
@keyframes fadeInUp {
  from {
      opacity: 0;
      transform: translateY(30px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

@keyframes particleFloat {
  0% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-20px) translateX(10px); }
  100% { transform: translateY(0) translateX(0); }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
      font-size: 2.5rem;
  }
  
  .hero-stats {
      flex-direction: column;
      gap: 1.5rem;
  }
  
  .portfolio-grid {
      grid-template-columns: 1fr;
      gap: 1.5rem;
  }
  
  .portfolio-card {
      height: 450px;
  }
  
  .portfolio-filters {
      flex-direction: column;
      align-items: center;
      gap: 0.5rem;
  }
  
  .filter-btn {
      padding: 0.8rem 1.5rem;
      width: 100%;
      max-width: 300px;
      justify-content: center;
  }
  
  .story-grid,
  .stats-grid {
      grid-template-columns: 1fr;
  }
}

/* Loading Animation */
.portfolio-card.loading {
  opacity: 0.5;
  pointer-events: none;
}

.portfolio-card.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  border: 3px solid rgba(220, 38, 38, 0.3);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  transform: translate(-50%, -50%);
  z-index: 1000;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}