/* Style.css - Landing Page Layout & Styling */

/* --- Layout Container --- */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 100px 0;
  position: relative;
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px auto;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* --- Glassmorphic Button --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  border: none;
  gap: 10px;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
  background: var(--accent-gradient-hover);
  box-shadow: var(--shadow-glow-purple);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

/* --- Header / Navigation --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  transition: all var(--transition-fast);
}

header.scrolled {
  background-color: var(--bg-glass);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  height: 70px;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
  font-size: 0.95rem;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switch {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}

.lang-switch:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--text-primary);
  transition: all var(--transition-fast);
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-height) + 40px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background: var(--accent-purple-glow);
  border: 1px solid var(--border-purple);
  color: var(--text-primary);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  gap: 8px;
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.25;
  font-weight: 900;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.hero h1 span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
}

/* Hero Visuals */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.visual-orbit {
  position: relative;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: center;
  align-items: center;
  animation: rotateOrbit 40s linear infinite;
}

.visual-core {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: var(--shadow-glow-purple);
  z-index: 10;
  position: absolute;
  top: 50%;
  left: 50%;
  overflow: hidden;
  background: var(--bg-card);
  animation: pulseCore 3s ease-in-out infinite alternate;
}

.visual-core img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Premium gradient border overlay */
.visual-core::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 3px;
  background: var(--accent-gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 11;
}

/* Floating icons in orbit */
.orbit-node {
  position: absolute;
  width: 64px;
  height: 64px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  animation: counterRotateOrbit 40s linear infinite;
}

.orbit-node i {
  font-size: 1.5rem;
  color: var(--text-primary);
}

.orbit-node-1 { top: -32px; left: calc(50% - 32px); }
.orbit-node-2 { right: -32px; top: calc(50% - 32px); }
.orbit-node-3 { bottom: -32px; left: calc(50% - 32px); }
.orbit-node-4 { left: -32px; top: calc(50% - 32px); }

/* --- Target Audience Section --- */
.target-audience {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.target-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.target-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 30px 24px;
  border-radius: var(--radius-md);
  text-align: center;
  transition: all var(--transition-fast);
}

.target-card:hover {
  border-color: var(--border-cyan);
  box-shadow: 0 8px 30px rgba(6, 182, 212, 0.05);
  transform: translateY(-5px);
}

.target-icon {
  width: 50px;
  height: 50px;
  background: var(--accent-cyan-glow);
  color: var(--accent-cyan);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 20px;
}

.target-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.target-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* --- Services Section --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 40px 30px;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-purple);
  box-shadow: 0 10px 40px rgba(139, 92, 246, 0.07);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 60px;
  height: 60px;
  background: var(--accent-purple-glow);
  color: var(--accent-purple);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.service-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* --- Benefits Section --- */
.benefits {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.benefits-visual {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
}

.stats-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.stat-item {
  text-align: center;
  padding: 24px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--accent-cyan);
  margin-bottom: 8px;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
}

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.benefit-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.benefit-num {
  width: 36px;
  height: 36px;
  background: var(--accent-gradient);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
  font-size: 0.95rem;
  box-shadow: 0 4px 10px rgba(139, 92, 246, 0.2);
}

.benefit-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.benefit-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* --- Portfolio Section --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-normal);
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
}

.portfolio-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-cyan);
  box-shadow: 0 10px 40px rgba(6, 182, 212, 0.07);
}

.portfolio-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--accent-gradient);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  z-index: 5;
}

/* Left badge for LTR */
body[lang="en"] .portfolio-badge {
  right: auto;
  left: 20px;
}

/* --- Portfolio Carousel Styles --- */
.portfolio-carousel {
  width: 100%;
  height: 220px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.4);
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 1;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 2;
  pointer-events: auto;
}

.carousel-slide img,
.carousel-slide video,
.carousel-slide iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
  display: block;
}

.carousel-slide img {
  transition: transform var(--transition-normal);
}

.portfolio-card:hover .carousel-slide.active img {
  transform: scale(1.05);
}

/* Nav Arrows */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-fast);
  opacity: 0;
  pointer-events: none;
}

.portfolio-carousel:hover .carousel-nav {
  opacity: 1;
  pointer-events: auto;
}

.carousel-nav:hover {
  background: var(--accent-gradient);
  border-color: transparent;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

.carousel-nav.prev {
  left: 10px;
}

.carousel-nav.next {
  right: 10px;
}

/* Indicators Dots */
.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.carousel-dot.active {
  background: #fff;
  transform: scale(1.25);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.portfolio-header {
  padding: 30px 30px 20px 30px;
  border-bottom: 1px solid var(--border-color);
}

.portfolio-header h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-top: 10px;
}

.portfolio-icon {
  font-size: 1.8rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.portfolio-details {
  padding: 24px 30px 30px 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: rgba(0, 0, 0, 0.1);
  flex-grow: 1;
}

.detail-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-inline-start: 14px;
}

/* Color-coding and structuring each block based on position */
/* 1. Problem block */
.portfolio-details .detail-block:nth-child(1) {
  border-inline-start: 3px solid #fb923c; /* Light Orange/Coral for Problem */
}
.portfolio-details .detail-block:nth-child(1) .detail-title {
  color: #fb923c;
}

/* 2. Solution block */
.portfolio-details .detail-block:nth-child(2) {
  border-inline-start: 3px solid #c084fc; /* Light Purple/Lavender for Solution */
}
.portfolio-details .detail-block:nth-child(2) .detail-title {
  color: #c084fc;
}

/* 3. Result block */
.portfolio-details .detail-block:nth-child(3) {
  border-inline-start: 3px solid #34d399; /* Light Mint/Emerald for Result */
}
.portfolio-details .detail-block:nth-child(3) .detail-title {
  color: #34d399;
}
.portfolio-details .detail-block:nth-child(3) .detail-content {
  color: #34d399 !important; /* Standout mint color for result content */
  font-weight: 600;
}

.detail-title {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-content {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  white-space: pre-wrap; /* Crucial to preserve user line breaks and bullet formatting */
}

/* --- Contact Section --- */
.contact {
  position: relative;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 50px 40px;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition-fast);
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.15);
  background: rgba(0, 0, 0, 0.3);
}

.form-group select option {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Form success overlay */
.success-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.success-modal.active {
  opacity: 1;
  pointer-events: all;
}

.success-modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-purple);
  border-radius: var(--radius-lg);
  padding: 50px 40px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-glow-purple);
  transform: scale(0.9);
  transition: transform var(--transition-normal);
}

.success-modal.active .success-modal-content {
  transform: scale(1);
}

.success-icon {
  font-size: 4rem;
  color: var(--accent-cyan);
  margin-bottom: 24px;
  display: inline-block;
  animation: bounceSuccess 1s infinite alternate;
}

.success-modal-content h3 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.success-modal-content p {
  color: var(--text-secondary);
  margin-bottom: 30px;
  line-height: 1.6;
}

/* --- Footer --- */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 60px 0;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-size: 1.3rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-rights {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.admin-trigger {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition-fast);
  font-size: 1rem;
}

.admin-trigger:hover {
  color: var(--accent-purple);
}

/* --- Animations Definitions --- */
@keyframes rotateOrbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes counterRotateOrbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

@keyframes pulseCore {
  from {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.35);
  }
  to {
    transform: translate(-50%, -50%) scale(1.06);
    box-shadow: 0 0 45px rgba(139, 92, 246, 0.65);
  }
}

@keyframes bounceSuccess {
  from { transform: translateY(0); }
  to { transform: translateY(-10px); }
}

/* --- Responsive Layout Rules --- */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 60px;
  }
  .hero h1 {
    font-size: 3rem;
  }
  .hero p {
    margin: 0 auto 30px auto;
  }
  .hero-ctas {
    justify-content: center;
  }
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .benefits-visual {
    order: 2;
  }
}

@media (max-width: 768px) {
  section {
    padding: 70px 0;
  }
  .section-header h2 {
    font-size: 2rem;
  }
  .menu-toggle {
    display: flex;
  }
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 40px;
    gap: 24px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-150%);
    opacity: 0;
    transition: all var(--transition-normal);
    pointer-events: none;
  }
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-actions {
    margin-right: 0;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .contact-card {
    padding: 30px 20px;
  }
  .footer-container {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .visual-orbit {
    width: 240px;
    height: 240px;
  }
  .visual-core {
    width: 120px;
    height: 120px;
  }
  .orbit-node {
    width: 48px;
    height: 48px;
  }
  .orbit-node i {
    font-size: 1.1rem;
  }
  .orbit-node-1 { top: -24px; left: calc(50% - 24px); }
  .orbit-node-2 { right: -24px; top: calc(50% - 24px); }
  .orbit-node-3 { bottom: -24px; left: calc(50% - 24px); }
  .orbit-node-4 { left: -24px; top: calc(50% - 24px); }
}

/* --- Direct Click Overlay --- */
.slide-click-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 8;
  background: transparent;
}

/* --- Premium Lightbox Modal --- */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 4, 6, 0.96);
  backdrop-filter: blur(15px);
  z-index: 20000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 20010;
}

.lightbox-close:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  transform: rotate(90deg);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 20010;
}

.lightbox-nav:hover {
  background: var(--accent-gradient);
  border-color: transparent;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

.lightbox-nav.prev {
  left: 30px;
}

.lightbox-nav.next {
  right: 30px;
}

/* Adjust nav for RTL direction page */
[dir="rtl"] .lightbox-nav.prev {
  left: auto;
  right: 30px;
}
[dir="rtl"] .lightbox-nav.next {
  right: auto;
  left: 30px;
}

.lightbox-content {
  max-width: 85vw;
  max-height: 75vh;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: scale(0.95);
  transition: transform var(--transition-normal);
}

.lightbox-modal.active .lightbox-content {
  transform: scale(1);
}

.lightbox-content img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8), 0 0 40px rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.lightbox-content video {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.lightbox-content iframe {
  width: 75vw;
  height: 42.18vw;
  max-height: 70vh;
  max-width: 1100px;
  border: none;
  border-radius: var(--radius-md);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8);
}

.lightbox-caption {
  margin-top: 30px;
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.6);
  padding: 10px 24px;
  border-radius: 50px;
  border: 1px solid var(--border-color);
  z-index: 20010;
}

@media (max-width: 768px) {
  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
  .lightbox-nav.prev { left: 10px; }
  .lightbox-nav.next { right: 10px; }
  [dir="rtl"] .lightbox-nav.prev { right: 10px; }
  [dir="rtl"] .lightbox-nav.next { left: 10px; }
  .lightbox-content iframe {
    width: 90vw;
    height: 50.625vw;
  }
}

/* ==========================================================================
   CONVERSION RATE OPTIMIZATION (CRO) STYLES
   ========================================================================== */

/* --- Hero Stats Counters --- */
.hero-stats-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 50px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 24px;
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
}

.hero-stat-card {
  text-align: center;
}

.hero-stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  margin-bottom: 8px;
}

.hero-stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* --- Problems Section --- */
.problems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 30px 24px;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.problem-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ef4444, transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.problem-card:hover {
  transform: translateY(-5px);
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 0 8px 30px rgba(239, 68, 68, 0.1);
}

.problem-card:hover::before {
  opacity: 1;
}

.problem-icon-wrapper {
  width: 50px;
  height: 50px;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.problem-card p {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-primary);
}

.problems-footer-message {
  text-align: center;
  margin: 40px auto 20px auto;
  max-width: 800px;
  padding: 20px 30px;
  background: var(--accent-purple-glow);
  border: 1px solid var(--border-purple);
  border-radius: var(--radius-sm);
}

.problems-footer-message p {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

/* --- Timeline ("How I Work") --- */
.timeline-wrapper {
  position: relative;
  max-width: 850px;
  margin: 50px auto 40px auto;
  padding: 20px 0;
}

/* Vertical line */
.timeline-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-purple), var(--accent-cyan));
  opacity: 0.3;
}

/* Position line based on dir */
[dir="rtl"] .timeline-wrapper::before {
  right: 40px;
}
[dir="ltr"] .timeline-wrapper::before {
  left: 40px;
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

/* Timeline dot/number badge */
.timeline-badge {
  position: absolute;
  top: 0;
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  border: 2px solid var(--accent-purple);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-primary);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
  z-index: 10;
  transition: all var(--transition-fast);
}

.timeline-item:nth-child(even) .timeline-badge {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
}

[dir="rtl"] .timeline-badge {
  right: 18px;
}
[dir="ltr"] .timeline-badge {
  left: 18px;
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 24px 30px;
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  transition: all var(--transition-fast);
}

[dir="rtl"] .timeline-content {
  margin-right: 80px;
}
[dir="ltr"] .timeline-content {
  margin-left: 80px;
}

.timeline-content:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.02);
}

.timeline-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.timeline-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* --- Why Choose Me Grid --- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 45px;
}

.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 35px 24px;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  text-align: center;
}

.why-card:hover {
  border-color: var(--border-purple);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.05);
  transform: translateY(-5px);
}

.why-icon {
  width: 55px;
  height: 55px;
  background: var(--accent-purple-glow);
  color: var(--accent-purple);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.why-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.why-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* --- FAQ Accordion --- */
.faq-container {
  max-width: 800px;
  margin: 0 auto 50px auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-header {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  transition: background var(--transition-fast);
}

.faq-header:hover {
  background: rgba(255, 255, 255, 0.02);
}

.faq-icon-toggle {
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.faq-item.active {
  border-color: var(--border-cyan);
}

.faq-item.active .faq-icon-toggle {
  transform: rotate(180deg);
  color: var(--accent-cyan);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) ease-out;
}

.faq-content-inner {
  padding: 0 24px 24px 24px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  margin-top: 0;
}

/* --- Inline repeated WhatsApp CTAs --- */
.inline-cta-container {
  text-align: center;
  margin: 50px 0;
  display: flex;
  justify-content: center;
}

.btn-whatsapp-cta {
  background: #25d366;
  color: #fff;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: 50px;
  font-size: 1.1rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
  animation: pulseWhatsApp 2s infinite;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-whatsapp-cta:hover {
  background: #128c7e;
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

@keyframes pulseWhatsApp {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* --- Trust Bar Section --- */
.trust-bar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 20px 30px;
  border-radius: var(--radius-sm);
  margin-bottom: 35px;
  width: 100%;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.trust-item i {
  color: #25d366;
  font-size: 1.1rem;
}

/* --- Portfolio Case Study Toggle Details --- */
.portfolio-details-collapsible {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) ease-out;
  border-top: 1px dashed rgba(255, 255, 255, 0.05);
  margin-top: 15px;
}

.portfolio-details-collapsible.expanded {
  max-height: 1000px; /* arbitrary high number for fully expanded height */
  transition: max-height var(--transition-normal) ease-in;
}

.portfolio-toggle-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  transition: all var(--transition-fast);
  width: 100%;
  justify-content: center;
}

.portfolio-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-hover);
}

/* Specific styling for brief summaries */
.portfolio-brief-flow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 15px;
  border-radius: var(--radius-sm);
  margin-top: 15px;
}

.brief-flow-step {
  flex: 1;
  min-width: 0;
}

.brief-flow-step p {
  font-size: 0.82rem;
  line-height: 1.4;
  margin: 5px 0 0 0;
  color: var(--text-secondary);
}

.brief-flow-step p.highlight {
  color: var(--accent-cyan);
  font-weight: 700;
}

.brief-flow-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent-purple);
  text-transform: uppercase;
  display: block;
}

[dir="rtl"] .brief-flow-label {
  color: #c084fc;
}

.brief-flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

[dir="rtl"] .brief-flow-arrow i {
  transform: rotate(180deg);
}

@media (max-width: 576px) {
  .portfolio-grid,
  .services-grid,
  .problems-grid,
  .why-grid,
  .target-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-brief-flow {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  
  .brief-flow-arrow {
    height: auto;
    padding: 2px 0;
  }
  
  .brief-flow-arrow i {
    transform: rotate(90deg) !important;
  }
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
  .hero-stats-container {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
  }
  
  [dir="rtl"] .timeline-wrapper::before,
  [dir="ltr"] .timeline-wrapper::before {
    left: 20px;
    right: auto;
  }
  
  [dir="rtl"] .timeline-badge,
  [dir="ltr"] .timeline-badge {
    left: 0;
    right: auto;
  }
  
  [dir="rtl"] .timeline-content,
  [dir="ltr"] .timeline-content {
    margin-left: 50px;
    margin-right: 0;
    padding: 20px;
  }
  
  .trust-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }
}
