/* ========================================
   PROJECTS PAGE - PREMIUM LUXURY CSS
   Glassmorphism + Advanced Animations
   ======================================== */

/* ========== CSS VARIABLES ========== */
:root {
  --glass-bg: rgba(248, 244, 236, 0.85);
  --glass-bg-dark: rgba(44, 44, 44, 0.7);
  --glass-border: rgba(200, 168, 107, 0.25);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  --glass-shadow-gold: 0 15px 35px rgba(200, 168, 107, 0.15);
  --glass-blur: blur(12px);
}

/* ========================================
   BASE STYLES
   ======================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--ivory);
  color: var(--charcoal);
  overflow-x: hidden;
}

/* ========================================
   PAGE HERO SECTION
   ======================================== */

.page-hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  margin-top: 80px;
  background: linear-gradient(135deg, rgba(107, 138, 116, 0.08), rgba(200, 169, 107, 0.12));
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://images.pexels.com/photos/1571460/pexels-photo-1571460.jpeg?auto=compress&cs=tinysrgb&w=1600');
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  z-index: 0;
  animation: slowZoom 25s ease-in-out infinite alternate;
}

@keyframes slowZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

.page-hero-content {
  position: relative;
  z-index: 2;
  animation: heroGlowEntrance 1.2s cubic-bezier(0.2, 0.9, 0.4, 1.1) forwards;
}

@keyframes heroGlowEntrance {
  0% {
    opacity: 0;
    transform: translateY(50px);
    filter: blur(15px);
  }
  50% {
    opacity: 0.5;
    transform: translateY(20px);
    filter: blur(5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.page-hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--charcoal), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.page-hero-content h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 25%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: titleLineExpand 1s ease-out 0.5s forwards;
}

@keyframes titleLineExpand {
  to {
    width: 50%;
    left: 25%;
  }
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 10px;
  font-size: 0.9rem;
  margin: 20px 0;
}

.breadcrumb a {
  text-decoration: none;
  color: var(--charcoal);
  transition: var(--transition);
  position: relative;
}

.breadcrumb a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.breadcrumb a:hover::after {
  width: 100%;
}

.breadcrumb a:hover {
  color: var(--gold);
  transform: translateY(-2px);
}

.breadcrumb span {
  color: var(--gold);
}

.hero-description {
  max-width: 600px;
  margin: 25px auto 0;
  color: #555;
  font-size: 1.1rem;
  line-height: 1.6;
  animation: fadeSlideUp 0.8s ease 0.4s forwards;
  opacity: 0;
  transform: translateY(20px);
}

@keyframes fadeSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--charcoal);
  opacity: 0.6;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

.scroll-mouse {
  width: 26px;
  height: 40px;
  border: 2px solid var(--charcoal);
  border-radius: 20px;
  margin: 10px auto 0;
  position: relative;
}

.mouse-wheel {
  width: 2px;
  height: 8px;
  background: var(--gold);
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: wheelRoll 2s infinite;
}

@keyframes wheelRoll {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  80% { opacity: 0; transform: translateX(-50%) translateY(15px); }
  100% { opacity: 0; transform: translateX(-50%) translateY(0); }
}

/* ========================================
   CONTAINER
   ======================================== */

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================================
   SECTION HEADER STYLES
   ======================================== */

.section-header {
  text-align: center;
  margin-bottom: 60px;
  opacity: 0;
  transform: translateY(30px);
  animation: headerReveal 0.8s ease 0.2s forwards;
}

@keyframes headerReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 15px;
  font-weight: 600;
  position: relative;
}

.section-tag::before {
  content: '✦';
  margin-right: 10px;
  opacity: 0.8;
}

.section-tag::after {
  content: '✦';
  margin-left: 10px;
  opacity: 0.8;
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--charcoal), var(--gold-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 15px;
}

.section-line {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
  margin: 20px auto 0;
  position: relative;
  border-radius: 2px;
}

.section-line::before,
.section-line::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  transform: translateY(-50%);
}

.section-line::before {
  left: -15px;
  box-shadow: 0 0 5px var(--gold);
}

.section-line::after {
  right: -15px;
  box-shadow: 0 0 5px var(--gold);
}

/* ========================================
   FILTER SECTION (GLASS)
   ======================================== */

.portfolio-filter {
  padding: 30px 0;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  position: sticky;
  top: 80px;
  z-index: 99;
  border-bottom: 1px solid var(--glass-border);
  animation: slideDown 0.6s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.filter-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.filter-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 26px;
  background: transparent;
  border: 1.5px solid var(--glass-border);
  border-radius: 40px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--charcoal);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transition: left 0.4s ease;
  z-index: -1;
}

.filter-btn:hover::before {
  left: 0;
}

.filter-btn:hover {
  border-color: var(--gold);
  color: var(--charcoal);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(200, 169, 107, 0.3);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-color: var(--gold);
  color: var(--charcoal);
  box-shadow: 0 5px 15px rgba(200, 169, 107, 0.3);
}

.filter-count {
  font-size: 0.9rem;
  color: var(--charcoal);
  background: rgba(200, 169, 107, 0.15);
  backdrop-filter: blur(4px);
  padding: 8px 18px;
  border-radius: 40px;
  transition: all 0.3s ease;
  border: 1px solid var(--glass-border);
}

.filter-count span {
  color: var(--gold);
  font-weight: 700;
  font-size: 1.1rem;
}

/* ========================================
   PROJECTS MASONRY GRID
   ======================================== */

.projects-grid-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--ivory), #FDF9F2);
}

.projects-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 35px;
}

.project-item {
  opacity: 0;
  transform: scale(0.95) translateY(30px);
  animation: projectReveal 0.7s cubic-bezier(0.2, 0.9, 0.4, 1.1) forwards;
}

@keyframes projectReveal {
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* PREMIUM PROJECT CARD - GLASS */
.project-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  box-shadow: var(--glass-shadow);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent, rgba(200, 169, 107, 0.08));
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
  pointer-events: none;
}

.project-card:hover::before {
  opacity: 1;
}

.project-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: var(--glass-shadow-gold);
  border-color: var(--gold);
}

.project-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.project-card:hover .project-image img {
  transform: scale(1.12);
}

/* Image Count Badge - Premium */
.image-count-badge {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  z-index: 10;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(200, 168, 107, 0.3);
}

.image-count-badge:hover {
  background: var(--gold);
  color: var(--charcoal);
  transform: scale(1.05);
  border-color: transparent;
}

.image-count-badge i {
  font-size: 11px;
}

/* Project Overlay - Premium */
.project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.8) 50%, transparent 100%);
  backdrop-filter: blur(4px);
  padding: 30px 25px 25px;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  z-index: 5;
}

.project-card:hover .project-overlay {
  transform: translateY(0);
}

.overlay-content {
  color: white;
  transform: translateY(20px);
  transition: transform 0.4s ease 0.1s;
}

.project-card:hover .overlay-content {
  transform: translateY(0);
}

.project-category {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  position: relative;
  padding-left: 20px;
}

.project-category::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 12px;
  height: 2px;
  background: var(--gold);
  transform: translateY(-50%);
}

.project-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  margin-bottom: 8px;
  font-weight: 600;
  background: linear-gradient(135deg, #fff, rgba(255,255,255,0.8));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.project-location {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.project-location i {
  color: var(--gold);
  font-size: 0.7rem;
}

.view-gallery-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200, 169, 107, 0.9);
  color: var(--charcoal);
  border: none;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.view-gallery-btn:hover {
  background: var(--gold);
  transform: translateX(5px);
  gap: 12px;
}

/* ========================================
   LOAD MORE BUTTON
   ======================================== */

.load-more {
  text-align: center;
  margin-top: 60px;
  padding: 20px 0;
}

.load-more-btn {
  padding: 14px 45px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.4s ease;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  color: var(--charcoal);
}

.load-more-btn i {
  transition: transform 0.3s ease;
}

.load-more-btn:hover i {
  transform: translateY(5px);
}

.load-more-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--glass-shadow-gold);
  border-color: var(--gold);
}

/* ========================================
   FEATURED PROJECT SECTION
   ======================================== */

.featured-project {
  position: relative;
  padding: 120px 0;
  background: linear-gradient(135deg, var(--charcoal), #1a1a1a);
  overflow: hidden;
}

.featured-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://images.pexels.com/photos/1571460/pexels-photo-1571460.jpeg?auto=compress&cs=tinysrgb&w=1600');
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  animation: slowZoomBg 20s ease-in-out infinite alternate;
}

@keyframes slowZoomBg {
  0% { transform: scale(1); }
  100% { transform: scale(1.05); }
}

.featured-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  color: white;
  opacity: 0;
  transform: translateX(-50px);
  animation: featuredSlideIn 0.8s ease 0.3s forwards;
}

@keyframes featuredSlideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.featured-content .section-tag {
  color: var(--gold);
  display: inline-block;
}

.featured-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  margin: 20px 0;
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, #fff, var(--gold-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.featured-content h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--gold);
  animation: widthGrow 1s ease 0.8s forwards;
}

@keyframes widthGrow {
  to {
    width: 80px;
  }
}

.featured-content p {
  line-height: 1.8;
  margin-bottom: 30px;
  opacity: 0.9;
}

.featured-details {
  display: flex;
  gap: 30px;
  margin-bottom: 35px;
  flex-wrap: wrap;
}

.detail {
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail i {
  color: var(--gold);
}

/* ========================================
   TESTIMONIALS SECTION (GLASS)
   ======================================== */

.testimonials-projects {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--cream), var(--ivory));
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.testimonial-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  padding: 35px;
  border-radius: 24px;
  transition: all 0.4s ease;
  box-shadow: var(--glass-shadow);
  opacity: 0;
  transform: translateY(40px);
  animation: testimonialReveal 0.6s ease forwards;
}

.testimonial-card:nth-child(1) { animation-delay: 0.1s; }
.testimonial-card:nth-child(2) { animation-delay: 0.2s; }
.testimonial-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes testimonialReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.testimonial-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
  box-shadow: var(--glass-shadow-gold);
}

.testimonial-card i {
  font-size: 2.5rem;
  color: var(--gold);
  opacity: 0.4;
  margin-bottom: 20px;
}

.testimonial-card p {
  line-height: 1.7;
  margin-bottom: 25px;
  color: #555;
  font-style: italic;
}

.client-info {
  display: flex;
  align-items: center;
  gap: 15px;
  border-top: 1px solid var(--glass-border);
  padding-top: 20px;
}

.client-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
  color: var(--charcoal);
}

.client-info strong {
  display: block;
  font-family: 'Playfair Display', serif;
  margin-bottom: 4px;
}

.client-info span {
  font-size: 0.75rem;
  opacity: 0.6;
}

/* ========================================
   CTA SECTION
   ======================================== */

.cta-section {
  position: relative;
  padding: 120px 0;
  text-align: center;
  background: linear-gradient(135deg, var(--charcoal), #1a1a1a);
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://images.pexels.com/photos/276583/pexels-photo-276583.jpeg?auto=compress&cs=tinysrgb&w=1600');
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  transition: transform 8s ease;
}

.cta-section:hover .cta-bg {
  transform: scale(1.05);
}

.cta-content {
  position: relative;
  z-index: 2;
  color: white;
  opacity: 0;
  transform: translateY(30px);
  animation: ctaReveal 0.8s ease 0.3s forwards;
}

@keyframes ctaReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cta-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff, var(--gold-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cta-content p {
  margin-bottom: 35px;
  opacity: 0.8;
}

.btn-primary-large {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 40px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--charcoal);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.4s ease;
  animation: btnPulse 2s infinite;
}

@keyframes btnPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200, 169, 107, 0.4); }
  50% { box-shadow: 0 0 0 15px rgba(200, 169, 107, 0); }
}

.btn-primary-large:hover {
  transform: translateY(-3px);
  gap: 18px;
  box-shadow: 0 15px 35px rgba(200, 168, 107, 0.4);
}

/* ========================================
   LOADING & EMPTY STATES
   ======================================== */

.loading-spinner {
  text-align: center;
  padding: 60px;
  color: var(--gold);
  font-size: 1.1rem;
  grid-column: 1 / -1;
}

.loading-spinner i {
  animation: spin 1s linear infinite;
  margin-right: 10px;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  color: var(--charcoal);
  grid-column: 1 / -1;
  box-shadow: var(--glass-shadow);
}

.empty-state i {
  font-size: 48px;
  color: var(--gold);
  margin-bottom: 20px;
  opacity: 0.5;
}

.empty-state h3 {
  margin-bottom: 10px;
  font-family: 'Playfair Display', serif;
}

.empty-state p {
  color: rgba(44, 44, 44, 0.6);
}

.error-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  color: var(--charcoal);
  grid-column: 1 / -1;
}

.error-state i {
  font-size: 48px;
  color: #e74c3c;
  margin-bottom: 20px;
}

.error-state button {
  margin-top: 20px;
  padding: 10px 30px;
  background: var(--gold);
  border: none;
  border-radius: 40px;
  cursor: pointer;
  color: var(--charcoal);
  font-weight: 600;
}

/* ========================================
   FLOATING WHATSAPP BUTTON
   ======================================== */

.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, #25D366, #20b859);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 30px;
  text-decoration: none;
  z-index: 100;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  animation: floatPulse 2s infinite;
}

@keyframes floatPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2); }
  50% { transform: scale(1.08); box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4); }
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  background: var(--charcoal);
  color: white;
  padding: 8px 15px;
  border-radius: 30px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-5px);
}

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */

.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--charcoal);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
  z-index: 100;
  border: 1px solid var(--gold);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--gold);
  transform: translateY(-5px);
  color: var(--charcoal);
}

/* ========================================
   FOOTER STYLES
   ======================================== */

footer {
  background: var(--charcoal);
  color: var(--warm-gray);
  padding: 60px 0 20px;
  margin-top: 80px;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--sage), var(--gold));
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  line-height: 1.6;
  opacity: 0.7;
  margin-top: 15px;
}

.footer-links h4 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 20px;
  color: white;
  position: relative;
  display: inline-block;
}

.footer-links h4::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--gold);
}

.footer-links a {
  display: block;
  text-decoration: none;
  color: var(--warm-gray);
  opacity: 0.7;
  margin-bottom: 12px;
  transition: var(--transition);
}

.footer-links a:hover {
  opacity: 1;
  color: var(--gold);
  transform: translateX(8px);
}

.footer-newsletter p {
  opacity: 0.7;
  margin-bottom: 15px;
}

.newsletter-form {
  display: flex;
  border-bottom: 2px solid var(--gold);
}

.newsletter-form input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 0;
  color: white;
  outline: none;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-form button {
  background: transparent;
  border: none;
  color: var(--gold);
  cursor: pointer;
  font-size: 18px;
  transition: var(--transition);
}

.newsletter-form button:hover {
  transform: translateX(5px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  opacity: 0.6;
}

.footer-bottom i {
  color: var(--gold);
}

/* ========================================
   FULL LOGO STYLES
   ======================================== */

.full-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  gap: 15px;
}

.full-logo-monogram {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #1F3B2F, #2D4A3C);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #C8A86B;
  margin: 0 auto;
}

.full-logo-monogram .monogram-m {
  font-family: 'Playfair Display', serif;
  font-size: 38px;
  font-weight: 800;
  color: #C8A86B;
}

.full-logo-monogram .monogram-m.second {
  font-size: 32px;
  margin-left: -12px;
  opacity: 0.8;
}

.full-logo-text {
  margin-top: 5px;
}

.full-logo-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #C8A86B;
  letter-spacing: 1px;
  display: block;
}

.full-logo-brand-alt {
  font-family: 'Playfair Display', serif;
  font-size: 0.8rem;
  font-weight: 400;
  color: #D4B87A;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  margin-top: 3px;
}

/* ========================================
   SCROLL REVEAL
   ======================================== */

.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 992px) {
  .projects-masonry {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
  }
  
  .filter-wrapper {
    flex-direction: column;
    text-align: center;
  }
  
  .filter-buttons {
    justify-content: center;
  }
  
  .page-hero-content h1 {
    font-size: 3rem;
  }
  
  .featured-content h2 {
    font-size: 2.5rem;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .section-header h2 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .page-hero-content h1 {
    font-size: 2.2rem;
  }
  
  .hero-description {
    font-size: 0.9rem;
    padding: 0 20px;
  }
  
  .projects-masonry {
    grid-template-columns: 1fr;
  }
  
  .filter-buttons {
    gap: 10px;
  }
  
  .filter-btn {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
  
  .featured-content {
    padding: 0 20px;
  }
  
  .featured-content h2 {
    font-size: 1.8rem;
  }
  
  .featured-details {
    flex-direction: column;
    gap: 15px;
  }
  
  .cta-content h2 {
    font-size: 1.8rem;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonial-card {
    padding: 25px;
  }
  
  .project-title {
    font-size: 1.2rem;
  }
  
  .overlay-content {
    padding: 10px 0;
  }
  
  .view-gallery-btn {
    padding: 8px 16px;
    font-size: 0.75rem;
  }
  
  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 24px;
    bottom: 20px;
    right: 20px;
  }
  
  .whatsapp-tooltip {
    display: none;
  }
  
  .back-to-top {
    width: 40px;
    height: 40px;
    bottom: 20px;
    left: 20px;
    font-size: 14px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .page-hero-content h1 {
    font-size: 1.8rem;
  }
  
  .section-header h2 {
    font-size: 1.8rem;
  }
  
  .filter-btn {
    padding: 6px 12px;
    font-size: 0.7rem;
  }
  
  .project-title {
    font-size: 1rem;
  }
  
  .project-location {
    font-size: 0.7rem;
  }
  
  .image-count-badge {
    padding: 4px 8px;
    font-size: 10px;
  }
  
  .featured-content h2 {
    font-size: 1.5rem;
  }
  
  .cta-content h2 {
    font-size: 1.5rem;
  }
}

/* ========================================
   FILTER LOADING EFFECT
   ======================================== */

.filter-loading {
  opacity: 0.6;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* ========================================
   IMAGE CURSOR
   ======================================== */

.project-img {
  cursor: pointer;
}

/* ========================================
   GOLDEN SPARKLE EFFECT
   ======================================== */

.project-card, .testimonial-card, .filter-btn {
  position: relative;
  overflow: hidden;
}

.project-card::after, .testimonial-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(200, 168, 107, 0.08), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.project-card:hover::after, .testimonial-card:hover::after {
  opacity: 1;
  animation: rotateSparkle 3s linear infinite;
}

@keyframes rotateSparkle {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ========================================
   BEFORE & AFTER SECTION - PREMIUM STYLES
   ======================================== */

.before-after-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--ivory), #FDF9F2);
  position: relative;
  overflow: hidden;
}

.section-subtitle {
  text-align: center;
  color: #666;
  margin-top: 15px;
  font-size: 1rem;
}

.before-after-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 40px;
  margin: 60px 0;
}

.before-after-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  box-shadow: var(--glass-shadow);
}

.before-after-card:hover {
  transform: translateY(-10px);
  border-color: var(--gold);
  box-shadow: var(--glass-shadow-gold);
}

.ba-container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  overflow: hidden;
}

.ba-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.ba-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.before-after-card:hover .ba-image img {
  transform: scale(1.05);
}

.ba-label {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  border-radius: 30px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  z-index: 2;
}

.ba-image.before .ba-label {
  background: rgba(231, 76, 60, 0.9);
  color: white;
}

.ba-image.after .ba-label {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--charcoal);
}

.ba-info {
  padding: 25px;
  text-align: center;
}

.ba-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--charcoal);
}

.ba-info p {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

.ba-stats {
  display: flex;
  justify-content: center;
  gap: 25px;
}

.ba-stats span {
  font-size: 0.8rem;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 6px;
}

.ba-stats i {
  font-size: 0.7rem;
}

/* Interactive Slider Before After */
.slider-before-after {
  margin-top: 80px;
  text-align: center;
}

.slider-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: var(--charcoal);
}

.slider-subtitle {
  color: #666;
  margin-bottom: 40px;
}

.comparison-slider {
  max-width: 800px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--glass-shadow-gold);
  border: 1px solid var(--glass-border);
}

.comparison-image {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.comparison-image img {
  width: 100%;
  height: auto;
  display: block;
}

.comparison-before {
  width: 100%;
}

.comparison-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
}

.comparison-after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.comparison-handler {
  position: absolute;
  top: 0;
  left: 50%;
  width: 40px;
  height: 100%;
  transform: translateX(-50%);
  cursor: ew-resize;
  z-index: 10;
}

.comparison-slider-line {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: var(--gold);
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(200, 168, 107, 0.5);
}

.comparison-slider-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--charcoal);
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.comparison-slider-button:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--gold-light);
}

/* Responsive Before/After */
@media (max-width: 992px) {
  .before-after-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .before-after-section {
    padding: 60px 0;
  }
  
  .slider-title {
    font-size: 1.4rem;
  }
  
  .ba-stats {
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }
  
  .comparison-slider-button {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .ba-info h3 {
    font-size: 1.1rem;
  }
  
  .ba-info p {
    font-size: 0.8rem;
  }
}