﻿/* ===================================================================
   SHEBA RAJSHAHI - SUBPAGES DESIGN SYSTEM (Vanilla CSS Grid)
   About | Services | Hotels | Projects | Gallery | Testimonials | Contact
   =================================================================== */

/* --- Subpage Banner / Page Hero --- */
.page-hero {
  background: radial-gradient(circle at 75% 20%, rgba(237, 233, 254, 0.7) 0%, rgba(250, 250, 250, 0) 65%),
              linear-gradient(180deg, #ffffff 0%, var(--bg-canvas) 100%);
  padding: 4.5rem 0 3.5rem;
  border-bottom: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.page-hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.breadcrumb-nav a {
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.breadcrumb-nav a:hover {
  color: var(--primary);
}

.breadcrumb-nav span {
  color: var(--primary);
}

.page-hero-title {
  font-size: clamp(2.25rem, 3.8vw, 3.25rem);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.page-hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 580px;
}

.page-hero-visual {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid #ffffff;
}

.page-hero-visual img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

/* --- Filter Bar (For Gallery & Projects) --- */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.filter-btn {
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  background: #ffffff;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.filter-btn:hover {
  color: var(--primary);
  border-color: var(--primary-soft);
  background: var(--primary-tint);
}

.filter-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: var(--shadow-purple-glow);
}

/* --- Projects Grid --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.25rem;
}

.project-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-soft);
}

.project-image-box {
  position: relative;
  height: 240px;
  overflow: hidden;
}

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

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

.project-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.35rem 0.85rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
}

.project-body {
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.project-meta-location {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--primary);
  font-weight: 600;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 0.65rem;
}

.project-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.project-stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
}

.project-stat-item strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
}

.project-stat-item span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* --- Gallery Grid --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #ffffff;
  border: 1px solid var(--border-light);
  height: 300px;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.05) 0%, rgba(15, 23, 42, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-category-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #c4b5fd;
  margin-bottom: 0.4rem;
}

.gallery-caption {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
}

/* --- Contact Page Grid --- */
.contact-layout-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 3.5rem;
  align-items: flex-start;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-card-box {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 2rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.contact-icon-large {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.4rem;
}

.contact-card-text h3 {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.contact-card-text p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.contact-form-container {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
}

.contact-form-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.contact-form-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* --- Team & Leadership Grid (About Page) --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.team-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition-smooth);
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-soft);
}

.team-card-image {
  height: 250px;
  overflow: hidden;
}

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

.team-card:hover .team-card-image img {
  transform: scale(1.05);
}

.team-card-info {
  padding: 1.5rem 1.25rem;
}

.team-card-name {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.team-card-role {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Values Grid (About Page) --- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.value-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-soft);
}

.value-icon-box {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.value-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.65rem;
}

.value-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* --- FAQ Accordion (Services & Hotels) --- */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.faq-item {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 1.75rem;
  transition: var(--transition-smooth);
}

.faq-item:hover {
  border-color: var(--primary-soft);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.65rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.faq-question::before {
  content: 'Q.';
  color: var(--primary);
  font-weight: 800;
}

.faq-answer {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  padding-left: 1.5rem;
}

/* --- Subpage Responsive Breakpoints --- */
@media (max-width: 1024px) {
  .page-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .page-hero-content {
    align-items: center;
  }
  .page-hero-visual {
    max-width: 500px;
    margin: 0 auto;
  }
  .projects-grid, .gallery-grid, .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-layout-grid {
    grid-template-columns: 1fr;
  }
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .projects-grid, .gallery-grid, .values-grid, .team-grid {
    grid-template-columns: 1fr;
  }
  .filter-bar {
    gap: 0.5rem;
  }
  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
  }
}


/* ===================================================================
   SINGLE PAGE DETAIL STYLES (Services & Projects)
   =================================================================== */

.back-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.25rem;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.back-nav-link:hover {
  transform: translateX(-4px);
  color: var(--primary-dark);
}

.detail-layout-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.detail-main-content {
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
}

.detail-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

/* Sidebar Booking Box */
.sidebar-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.sidebar-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.sidebar-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-light);
}

.sidebar-price-amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.sidebar-price-unit {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.sidebar-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.sidebar-feature-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.875rem;
  color: var(--text-main);
}

.sidebar-feature-icon {
  width: 18px;
  height: 18px;
  color: var(--success);
  flex-shrink: 0;
}

.sidebar-help-card {
  background: var(--primary-tint);
  border: 1px solid var(--primary-soft);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.sidebar-help-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.sidebar-help-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.sidebar-hotline-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

/* Checklist Section */
.checklist-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  transition: var(--transition-smooth);
}

.checklist-item:hover {
  background: #ffffff;
  border-color: var(--primary-soft);
  box-shadow: var(--shadow-sm);
}

.checklist-icon {
  width: 22px;
  height: 22px;
  background: var(--primary-tint);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.checklist-text {
  font-size: 0.9375rem;
  color: var(--text-main);
  line-height: 1.45;
  font-weight: 500;
}

/* Process Timeline Grid */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.process-step-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  position: relative;
}

.process-step-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.3;
  margin-bottom: 0.5rem;
}

.process-step-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.process-step-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Pricing Tiers Grid */
.pricing-tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.pricing-tier-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.pricing-tier-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-soft);
}

.pricing-tier-card.featured {
  border: 2px solid var(--primary);
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, rgba(245, 243, 255, 0.4) 100%);
}

.pricing-tier-badge {
  position: absolute;
  top: -12px;
  right: 1.5rem;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

.tier-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.tier-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.tier-price {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.tier-price span {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
}

.tier-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.tier-list li {
  font-size: 0.8125rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Project Detail Specifics */
.project-stats-banner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.75rem 2rem;
  margin-bottom: 2rem;
}

.project-stat-box {
  display: flex;
  flex-direction: column;
}

.project-stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.project-stat-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.project-specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.project-specs-table th,
.project-specs-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.875rem;
}

.project-specs-table th {
  color: var(--text-muted);
  font-weight: 600;
  width: 35%;
  background: var(--bg-subtle);
}

.project-specs-table td {
  color: var(--text-main);
  font-weight: 500;
}

.project-quote-box {
  background: linear-gradient(135deg, rgba(237, 233, 254, 0.4) 0%, rgba(245, 243, 255, 0.2) 100%);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.5rem 1.75rem;
  margin: 1.5rem 0;
}

.project-quote-text {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.project-quote-author {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary-dark);
}

/* Card Action Link in Main Catalog */
.service-actions-row, .project-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.card-detail-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.card-detail-link:hover {
  color: var(--primary-dark);
  transform: translateX(3px);
}

/* Responsive Overrides */
@media (max-width: 1024px) {
  .detail-layout-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .detail-sidebar {
    position: static;
  }
  .pricing-tiers-grid {
    grid-template-columns: 1fr;
  }
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .project-stats-banner {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (max-width: 640px) {
  .process-grid {
    grid-template-columns: 1fr;
  }
  .project-stats-banner {
    grid-template-columns: 1fr;
    padding: 1.25rem;
  }
}


/* --- Ensure Complete Visibility for Catalog Grid Cards --- */
.services-grid,
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  width: 100%;
}

.services-grid .service-card,
.projects-grid .project-card {
  opacity: 1;
  visibility: visible;
}

.services-grid .service-card.filtered-out,
.projects-grid .project-card.filtered-out {
  display: none !important;
}

@media (max-width: 1024px) {
  .services-grid,
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 680px) {
  .services-grid,
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* --- Modal Overrides & Enhancements for All Catalog & Detail Pages --- */
.modal-dialog,
.modal-container {
  background: #ffffff !important;
  border-radius: 20px !important;
  max-width: 580px !important;
  width: 100% !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.35), 0 10px 25px -5px rgba(15, 23, 42, 0.15), 0 0 0 1px rgba(15, 23, 42, 0.08) !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
}

.modal-header {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  padding: 1.5rem 1.75rem 1.25rem !important;
}

.modal-body {
  background: #ffffff !important;
  padding: 1.5rem 1.75rem 1.75rem !important;
}

.modal-title-box h3,
.modal-title {
  color: #0f172a !important;
  font-weight: 800 !important;
}

.modal-title-box p,
.modal-subtitle {
  color: #64748b !important;
}

.modal-close-btn {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #64748b !important;
}

.modal-close-btn:hover {
  background: #ffe4e6 !important;
  color: #f43f5e !important;
  border-color: #ffe4e6 !important;
}

/* ===================================================================
   GALLERY LIGHTBOX MODAL
   =================================================================== */
.gallery-zoom-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #6d28d9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: auto;
  align-self: flex-end;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transform: translateY(-8px) scale(0.9);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover .gallery-zoom-icon {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 3500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 29, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.gallery-lightbox-dialog {
  position: relative;
  z-index: 1;
  max-width: 960px;
  width: 100%;
  background: #ffffff !important;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 80px -15px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-lightbox.active .gallery-lightbox-dialog {
  transform: translateY(0) scale(1);
}

.gallery-lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  background: #ffffff !important;
  border-bottom: 1px solid #f1f5f9;
}

.gallery-lightbox-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.gallery-lightbox-tag {
  background: #ede9fe;
  color: #6d28d9;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
}

.gallery-lightbox-counter {
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
}

.gallery-lightbox-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gallery-lightbox-close:hover {
  background: #fee2e2;
  color: #ef4444;
  border-color: #fca5a5;
  transform: rotate(90deg);
}

.gallery-lightbox-stage {
  position: relative;
  width: 100%;
  height: 520px;
  max-height: 60vh;
  background: #090d16;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gallery-lightbox-media-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-lightbox-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.gallery-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: all 0.2s ease;
  z-index: 10;
}

.gallery-lightbox-nav:hover {
  background: #ffffff;
  color: #6d28d9;
  transform: translateY(-50%) scale(1.1);
}

.gallery-lightbox-nav.prev {
  left: 1.25rem;
}

.gallery-lightbox-nav.next {
  right: 1.25rem;
}

.gallery-lightbox-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.75rem;
  background: #ffffff !important;
  border-top: 1px solid #f1f5f9;
  gap: 1.5rem;
}

.gallery-lightbox-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a !important;
  margin: 0;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .gallery-lightbox {
    padding: 0.75rem;
  }
  .gallery-lightbox-stage {
    height: 340px;
  }
  .gallery-lightbox-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
  }
  .gallery-lightbox-title {
    font-size: 1rem;
  }
  .gallery-lightbox-nav {
    width: 38px;
    height: 38px;
  }
  .gallery-lightbox-nav.prev {
    left: 0.75rem;
  }
  .gallery-lightbox-nav.next {
    right: 0.75rem;
  }
}


/* ===================================================================
   SCROLL TO TOP FLOATING BUTTON
   =================================================================== */
.scroll-to-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light, #7c3aed) 0%, var(--primary, #6d28d9) 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 25px -4px rgba(109, 40, 217, 0.45), 0 4px 10px -2px rgba(15, 23, 42, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.85);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.scroll-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.scroll-to-top-btn:hover {
  background: linear-gradient(135deg, var(--primary, #6d28d9) 0%, var(--primary-dark, #4c1d95) 100%);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 16px 32px -4px rgba(109, 40, 217, 0.55), 0 6px 14px -2px rgba(15, 23, 42, 0.2);
}

.scroll-to-top-btn:active {
  transform: translateY(-1px) scale(0.98);
}

.scroll-to-top-btn svg {
  transition: transform 0.25s ease;
}

.scroll-to-top-btn:hover svg {
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .scroll-to-top-btn {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
  }
}
