/* ARTATE - Pages CSS
 * ===================
 * Page-specific styles
 */

/* ==================
   HERO SECTION (Home)
   ================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 5rem;
}

.hero-background {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, hsl(var(--background)), hsl(var(--background) / 0.5));
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 56rem;
  padding: 0 1rem;
}

.hero-badge {
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-title span {
  display: block;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: hsl(var(--muted-foreground));
  max-width: 42rem;
  margin: 0 auto 2rem;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero-cta {
    flex-direction: row;
    justify-content: center;
  }
}

.trust-badges {
  margin-top: 4rem;
  opacity: 0.5;
}

.trust-badges p {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
}

.trust-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.trust-logos span {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
}

/* Glow Orbs - matches React GlowOrb component */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, hsl(354 85% 44%) 0%, transparent 70%);
  filter: blur(48px);
  pointer-events: none;
  opacity: 0.2;
  transition: opacity 1s ease;
}

.glow-orb-1 {
  width: 600px;
  height: 600px;
  top: -160px;
  left: -160px;
}

.glow-orb-2 {
  width: 400px;
  height: 400px;
  top: 50%;
  right: -80px;
  transform: translateY(-50%);
}

.glow-orb-3 {
  width: 500px;
  height: 500px;
  bottom: -160px;
  left: 50%;
  transform: translateX(-50%);
}

/* Hide glow orbs on mobile */
@media (max-width: 767px) {
  .glow-orb-1,
  .glow-orb-2 {
    display: none;
  }
}

/* Particles */
.particle-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  border-radius: 50%;
}

/* ==================
   SECTION HEADERS
   ================== */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

@media (min-width: 1024px) {
  .section-header {
    margin-bottom: 4rem;
  }
}

.section-badge {
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.section-description {
  color: hsl(var(--muted-foreground));
  max-width: 42rem;
  margin: 0 auto;
}

/* ==================
   SERVICES PAGE
   ================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}

@media (min-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

.stat-card {
  text-align: center;
  padding: 1.5rem;
  background-color: hsl(var(--card) / 0.5);
  border: 1px solid hsl(var(--border) / 0.5);
  border-radius: var(--radius-xl);
}

.stat-value {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 2.5rem;
  color: hsl(var(--primary));
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

/* Service Accordion */
.service-accordion {
  border: 1px solid hsl(var(--border) / 0.5);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 1rem;
}

.service-accordion-trigger {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 1.25rem 1.5rem;
  gap: 1rem;
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.service-accordion-trigger:hover {
  background-color: hsl(var(--muted) / 0.5);
}

.service-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-lg);
  background-color: hsl(var(--primary) / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: hsl(var(--primary));
}

.service-info {
  flex: 1;
}

.service-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.service-short-desc {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.service-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.service-accordion.open .service-accordion-content {
  max-height: 500px;
}

.service-details {
  padding: 0 1.5rem 1.5rem;
  padding-left: 5.5rem;
}

.service-features {
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .service-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.service-features li svg {
  width: 1rem;
  height: 1rem;
  color: hsl(var(--primary));
  flex-shrink: 0;
}

/* ==================
   PORTFOLIO PAGE
   ================== */
.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  background-color: transparent;
  border: 1px solid hsl(var(--border));
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: hsl(var(--foreground));
}

.filter-btn svg {
  width: 1rem;
  height: 1rem;
}

.filter-btn:hover {
  background-color: hsl(var(--muted));
  border-color: hsl(var(--muted-foreground) / 0.3);
}

.filter-btn.active {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-color: hsl(var(--primary));
}

.portfolio-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.portfolio-item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid hsl(var(--border) / 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.portfolio-item-bg {
  position: absolute;
  inset: 0;
  opacity: 1;
}

.portfolio-item-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  text-align: left;
}

.portfolio-item-overlay {
  position: absolute;
  inset: 0;
  background-color: hsl(var(--background) / 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

/* Before/After Slider */
.before-after-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.before-after-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.before-image {
  clip-path: inset(0 50% 0 0);
}

.before-after-slider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background-color: white;
  cursor: ew-resize;
  transform: translateX(-50%);
}

.before-after-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2.5rem;
  height: 2.5rem;
  background-color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ==================
   PRICING PAGE
   ================== */
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.pricing-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 72rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.pricing-card {
  position: relative;
  padding: 1.5rem;
  background-color: hsl(var(--card) / 0.5);
  border: 1px solid hsl(var(--border) / 0.5);
  border-radius: var(--radius-xl);
  transition: all 0.3s ease;
}

.pricing-card.featured {
  border-color: hsl(var(--primary));
  background-color: hsl(var(--primary) / 0.05);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.pricing-badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
}

.pricing-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.pricing-currency {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.pricing-amount {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 2.5rem;
}

.pricing-period {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.pricing-description {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.5rem;
}

.pricing-features {
  list-style: none;
  margin-bottom: 1.5rem;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.pricing-features li svg {
  width: 1rem;
  height: 1rem;
  color: hsl(var(--primary));
  flex-shrink: 0;
}

/* Feature Comparison Table */
.feature-table-container {
  overflow-x: auto;
  margin-top: 4rem;
}

.feature-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.feature-table th,
.feature-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid hsl(var(--border));
}

.feature-table th {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  background-color: hsl(var(--muted) / 0.5);
}

.feature-table td {
  font-size: 0.875rem;
}

.feature-table tbody tr:hover {
  background-color: hsl(var(--muted) / 0.3);
}

/* ==================
   CONTACT PAGE
   ================== */
.contact-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
  }
}

.contact-info-card {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border) / 0.5);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.contact-info-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  background-color: hsl(var(--primary) / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: hsl(var(--primary));
}

.contact-info-label {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.25rem;
}

.contact-info-value {
  font-size: 0.875rem;
  font-weight: 500;
}

.whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.875rem;
  background-color: #25D366;
  color: white;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-decoration: none;
}

.whatsapp-btn:hover {
  background-color: #20bd5a;
  color: white;
}

/* ==================
   404 PAGE
   ================== */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.error-content {
  text-align: center;
  max-width: 32rem;
}

.error-code {
  position: relative;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 8rem;
  line-height: 1;
  color: hsl(var(--primary));
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .error-code {
    font-size: 12rem;
  }
}

.error-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: hsl(var(--primary) / 0.3);
}

.error-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.error-description {
  color: hsl(var(--muted-foreground));
  margin-bottom: 2rem;
}

.error-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .error-actions {
    flex-direction: row;
    justify-content: center;
  }
}

/* ==================
   MOBILE BACKGROUND (Hero)
   ================== */
.mobile-animated-bg {
  display: block;
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    hsl(var(--primary) / 0.1) 0%,
    hsl(var(--background)) 25%,
    hsl(var(--background)) 50%,
    hsl(var(--primary) / 0.05) 75%,
    hsl(var(--background)) 100%
  );
  background-size: 400% 400%;
  animation: gradient-shift 15s ease infinite;
}

@media (min-width: 768px) {
  .mobile-animated-bg {
    display: none;
  }
}

/* ==================
   FORM SUCCESS STATE
   ================== */
.form-success {
  text-align: center;
  padding: 3rem 1.5rem;
}

.form-success-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background-color: hsl(142 76% 36% / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-success-icon svg {
  width: 2rem;
  height: 2rem;
  color: #22c55e;
}

.form-success-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.form-success-message {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
}
