/* Projects Page - Luxury Design */
/* Premium real estate listing page with conversion-focused design */

/* ========================================
   PAGE HEADER - Dark Luxury Hero
   ======================================== */
.projects-hero {
  background: url('../images/bar-all.webp') center/cover no-repeat;
  padding: 8rem 4rem 4rem;
  position: relative;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: center;
}

.projects-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(10, 16, 29, 0.85) 0%, rgba(27, 38, 59, 0.7) 100%);
  pointer-events: none;
}

.projects-hero-content {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.projects-hero-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
}

.projects-hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.projects-hero-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  line-height: 1.6;
}

/* ========================================
   CATEGORY NAVIGATION - Main Page
   ======================================== */
.category-nav-main {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 2rem 4rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.category-nav-main-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.category-nav-main-link {
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.75rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.category-nav-main-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.15);
  background: #ffffff;
}

.category-nav-main-link.active {
  background: #1a1a1a;
  border-color: #1a1a1a;
  color: #ffffff;
}

.category-nav-main-link.active .category-nav-main-count {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.category-nav-main-label {
  font-size: 1rem;
  font-weight: 600;
  color: inherit;
}

.category-nav-main-count {
  font-size: 0.8rem;
  font-weight: 500;
  background: rgba(0, 0, 0, 0.06);
  color: #666;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  transition: all 0.3s ease;
}

/* Mobile Category Navigation */
@media (max-width: 768px) {
  .category-nav-main {
    padding: 1.5rem 1rem;
  }
  
  .category-nav-main-container {
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    justify-content: flex-start;
    gap: 0.75rem;
  }
  
  .category-nav-main-container::-webkit-scrollbar {
    display: none;
  }
  
  .category-nav-main-link {
    flex-shrink: 0;
    padding: 0.875rem 1.25rem;
  }
  
  .category-nav-main-label {
    font-size: 0.9rem;
  }
}

/* ========================================
   FILTER TABS - Luxury Pills
   ======================================== */
.projects-filter {
  background: #ffffff;
  padding: 2rem 4rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
}

.projects-filter-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.filter-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  max-width: 100%;
}

.filter-tabs::-webkit-scrollbar {
  display: none;
}

.filter-tab {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 100px;
  background: #ffffff;
  color: #333333;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.filter-tab:hover {
  border-color: #0a101d;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.filter-tab.active {
  background: #0a101d;
  color: #ffffff;
  border-color: #0a101d;
}

.filter-results {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.5);
}

/* ========================================
   PROJECTS GRID - Luxury Cards
   ======================================== */
.projects-section {
  padding: 4rem;
  background: #f8f9fa;
  min-height: 60vh;
}

.projects-container {
  max-width: 1400px;
  margin: 0 auto;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 2rem;
}

/* Project Card - Luxury Style */
.project-luxury-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
}

.project-luxury-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.project-luxury-image-wrap {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.project-luxury-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-luxury-card:hover .project-luxury-image-wrap img {
  transform: scale(1.05);
}

/* Status Badge */
.project-status-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
}

.project-status-badge.available {
  background: #10b981;
  color: #ffffff;
}

.project-status-badge.sold-out {
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
}

.project-status-badge.off-plan {
  background: #0f172a;
  color: #ffffff;
}

/* Quick Actions Overlay */
.project-quick-actions {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 2;
}

.project-luxury-card:hover .project-quick-actions {
  opacity: 1;
  transform: translateY(0);
}

.project-action-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.project-action-btn:hover {
  transform: scale(1.1);
  background: #0a101d;
  color: #ffffff;
}

.project-action-btn svg {
  width: 18px;
  height: 18px;
}

/* Basket Button */
.project-basket-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  padding: 0;
  overflow: hidden;
}

.project-basket-btn:hover {
  transform: scale(1.1);
  background: #0a101d;
}

.project-basket-btn:hover img {
  filter: brightness(0) invert(1);
}

.project-basket-btn img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  transition: filter 0.3s ease;
}

.project-basket-btn.in-basket {
  background: #22c55e;
}

.project-basket-btn.in-basket img {
  filter: brightness(0) invert(1);
}

/* Card Content */
.project-luxury-content {
  padding: 1.5rem;
}

.project-luxury-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.project-luxury-type {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(0, 0, 0, 0.5);
}

.project-luxury-price {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0a101d;
}

.project-luxury-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.project-luxury-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.6);
  margin-bottom: 1.25rem;
}

.project-luxury-location svg {
  width: 16px;
  height: 16px;
  color: rgba(0, 0, 0, 0.4);
}

/* Features */
.project-luxury-features {
  display: flex;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.project-feature {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: rgba(0, 0, 0, 0.6);
}

.project-feature svg {
  width: 16px;
  height: 16px;
  color: rgba(0, 0, 0, 0.4);
}

/* CTA Button */
.project-luxury-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #0a101d 0%, #1b263b 100%);
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 100px;
  transition: all 0.3s ease;
}

.project-luxury-cta:hover {
  background: linear-gradient(135deg, #1b263b 0%, #0a101d 100%);
  transform: translateX(4px);
}

.project-luxury-cta svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.project-luxury-cta:hover svg {
  transform: translateX(4px);
}

/* Card Actions Container */
.project-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* Heart/Save Button */
.project-save-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.project-save-btn:hover {
  background: #fef2f2;
  border-color: #fecaca;
  transform: scale(1.05);
}

.project-save-btn:active {
  transform: scale(0.95);
}

.project-save-btn svg {
  width: 20px;
  height: 20px;
  transition: all 0.2s ease;
  stroke: #64748b;
  fill: none;
}

.project-save-btn:hover svg {
  stroke: #ef4444;
}

.project-save-btn.saved {
  background: #fef2f2;
  border-color: #ef4444;
}

.project-save-btn.saved svg {
  fill: #ef4444;
  stroke: #ef4444;
  animation: heartPulse 0.3s ease;
}

@keyframes heartPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* ========================================
   CTA SECTION - Conversion Focus
   ======================================== */
.projects-cta-section {
  background: linear-gradient(180deg, #0a101d 0%, #1b263b 100%);
  padding: 6rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.projects-cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(15, 23, 42, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.projects-cta-content {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.projects-cta-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.projects-cta-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
}

.projects-cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.projects-cta-btn {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 1rem 2rem;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.projects-cta-btn.primary {
  background: #ffffff;
  color: #0a101d;
}

.projects-cta-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.projects-cta-btn.secondary {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.projects-cta-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   WHATSAPP FLOATING BUTTON
   ======================================== */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 100;
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  color: #ffffff;
}

.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  background: #ffffff;
  color: #333333;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s ease;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade-in {
  animation: fadeIn 0.4s ease-out forwards;
}

/* Stagger animation delays */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .projects-hero {
    padding: 6rem 2rem 3rem;
  }
  
  .projects-filter {
    padding: 1.5rem 2rem;
  }
  
  .projects-section {
    padding: 3rem 2rem;
  }
  
  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .projects-hero {
    padding: 5rem 1.5rem 2.5rem;
  }
  
  .projects-hero-title {
    font-size: 2rem;
  }
  
  .projects-filter {
    padding: 1rem 1.5rem;
    position: relative;
  }
  
  .projects-filter-container {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  
  .filter-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }
  
  .filter-tab {
    white-space: nowrap;
    flex-shrink: 0;
  }
  
  .projects-section {
    padding: 2rem 1.5rem;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .project-luxury-image-wrap {
    height: 240px;
  }
  
  .projects-cta-section {
    padding: 4rem 1.5rem;
  }
  
  .projects-cta-buttons {
    flex-direction: column;
  }
  
  .whatsapp-float {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 56px;
    height: 56px;
  }
  
  .whatsapp-tooltip {
    display: none;
  }
}
