/* Custom site overrides
   - Keep vendor files untouched; add styles here.
   - Loaded after all other CSS. */

/* Example brand variable (use as needed) */
:root {
  --brand-primary: #835BF4;
}

/* Media helpers */
img {
  max-width: 100%;
  height: auto;
}

/* Generic download buttons layout (helps small screens) */
.download-buttons { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
@media (max-width: 575.98px) {
  .download-buttons { justify-content: center; }
}

/* Tweak hero subtitle sizing on small screens */
@media (max-width: 575.98px) {
  .hero-slide-subtitle { font-size: 1.1rem; line-height: 1.4; }
}

/* Align mobile burger button neatly */
@media (max-width: 991.98px) {
  .header-area .header-action { display: flex; justify-content: flex-end; align-items: center; height: 100%; }
  .header-menu-btn {
    margin: 0 !important; /* override theme margin that nudges it down */
    padding: 8px 2px;
    display: inline-flex; /* ensure flex for vertical centering of bars */
    flex-direction: column;
    gap: 5px;
    vertical-align: middle;
  }
  .header-menu-btn span {
    width: 24px; /* slightly wider for visual balance */
    height: 2px;
    margin: 0; /* remove extra bottom margin to center three bars */
    background-color: #231942; /* match brand text color */
  }
}

.blog-detail-img {
  border-radius: 8px;
}

/* Inside App feature cards */
.feature-card {
  border: 1px solid #eef0f4;
  border-radius: 16px;
  padding: 22px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(2,6,23,0.06);
  height: 100%;
}
.inside-swiper-container { 
  padding: 40px 0; 
  margin: 0 -12px;
  background: linear-gradient(180deg, rgba(249, 250, 251, 0.5) 0%, rgba(255, 255, 255, 0) 100%);
  border-radius: 24px;
}
.inside-swiper-container .swiper-wrapper { 
  align-items: stretch; 
  padding: 20px 12px;
}
.inside-swiper-container .swiper-slide { 
  height: auto; 
  display: flex; 
  opacity: 0.7;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.inside-swiper-container .swiper-slide-active {
  opacity: 1;
  transform: scale(1.02);
}
.feature-card .row { 
  min-height: 100%; 
  align-items: center; 
  gap: 24px;
}
.feature-icon {
  width: 64px; height: 64px; border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #6b5df5 0%, #8b7dff 100%);
  color: white;
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(107, 93, 245, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover .feature-icon {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(107, 93, 245, 0.35);
}
.feature-title { 
  margin-top: 16px; 
  margin-bottom: 12px; 
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f2937;
}
.feature-desc { 
  color: #4b5563; 
  margin-bottom: 16px; 
  line-height: 1.6;
  font-size: 1rem;
}
.feature-list { 
  padding-left: 0; 
  margin: 0; 
  list-style: none; 
}
.feature-list li { 
  margin: 8px 0; 
  color: #374151; 
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
}
.feature-list i { 
  color: var(--brand-primary); 
  margin-right: 8px; 
  margin-top: 2px;
  font-size: 14px;
}
.feature-shot { 
  border-radius: 20px; 
  box-shadow: 0 12px 24px rgba(2,6,23,0.15); 
  width: 100%; 
  height: auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover .feature-shot {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(2,6,23,0.2);
}

/* iPhone Frame Styles */
.mobile-app-frame {
  width: 320px;
  height: 690px;
  background: #ffffff;
  border-radius: 50px;
  border: 12px solid #1a1a1a;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  position: relative;
  margin: 0 auto;
}

.mobile-header {
  background: #1a1a1a;
  color: white;
  padding: 12px 16px 8px;
  position: relative;
}

.mobile-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 12px;
  padding: 0 4px;
}

.mobile-status-icons {
  display: flex;
  gap: 8px;
  align-items: center;
}

.mobile-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-back-btn,
.mobile-menu-btn {
  font-size: 20px;
  font-weight: 600;
  width: 30px;
  text-align: center;
  opacity: 0.9;
}

.mobile-title {
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.2px;
}

.mobile-content {
  height: calc(100% - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: #f8f9fa;
}

.app-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.app-screenshot {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff;
  filter: brightness(0.95);
}

.app-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.app-screen:hover .app-overlay {
  opacity: 1;
}

.app-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: linear-gradient(135deg, #6b5df5 0%, #8b7dff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  margin-bottom: 16px;
  box-shadow: 0 6px 20px rgba(107, 93, 245, 0.3);
}

.app-feature-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.app-feature-desc {
  color: #4b5563;
  margin-bottom: 20px;
  line-height: 1.5;
  font-size: 0.95rem;
}

.app-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.app-feature-list li {
  margin: 8px 0;
  color: #374151;
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
}

.app-feature-list i {
  color: #6b5df5;
  margin-right: 8px;
  margin-top: 2px;
  font-size: 12px;
}

.mobile-footer {
  background: #1a1a1a;
  padding: 20px 16px 16px;
  display: flex;
  justify-content: center;
}

.mobile-home-indicator {
  width: 134px;
  height: 5px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 3px;
}

/* Enhanced hover effects (desktop) */
@media (hover: hover) and (pointer: fine) {
  .inside-swiper-container .swiper-slide .feature-card { 
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 2px solid transparent;
  }
  .inside-swiper-container .swiper-slide:hover .feature-card {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(2,6,23,0.15);
    border-color: rgba(107, 93, 245, 0.1);
  }
}

@media (max-width: 767.98px) {
  .inside-swiper-container {
    margin: 0 -8px;
    padding-bottom: 32px;
  }
  .inside-swiper-container .swiper-wrapper {
    padding: 16px 8px;
  }
  .inside-swiper-container .swiper-button-next,
  .inside-swiper-container .swiper-button-prev {
    display: none;
  }
  
  /* iPhone frame adjustments for smaller screens */
  .mobile-app-frame {
    width: 280px;
    height: 600px;
    border-radius: 40px;
    border-width: 10px;
  }
  
  .mobile-content {
    height: calc(100% - 110px);
    padding: 10px;
  }
  
  .app-icon {
    width: 50px;
    height: 50px;
    font-size: 20px;
    margin-bottom: 12px;
  }
  
  .app-feature-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
  }
  
  .app-feature-desc {
    font-size: 0.9rem;
    margin-bottom: 16px;
  }
  
  .app-feature-list li {
    font-size: 0.85rem;
    margin: 6px 0;
  }
  
  .feature-card .feature-title,
  .feature-card .feature-desc,
  .feature-card .feature-list { 
    text-align: center; 
  }
  .feature-card .feature-icon { 
    margin-left: auto; 
    margin-right: auto; 
    width: 56px;
    height: 56px;
    font-size: 22px;
  }
  .feature-shot { 
    max-width: 280px; 
    margin-left: auto; 
    margin-right: auto;
    border-radius: 16px;
  }
  .feature-title {
    font-size: 1.35rem;
    margin-top: 14px;
  }
  .feature-desc {
    font-size: 0.95rem;
  }
}

/* Enhanced Swiper navigation */
.inside-swiper-container {
  position: relative;
}

/* Mobile frame hover effects */
.mobile-app-frame {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.inside-swiper-container .swiper-slide-active .mobile-app-frame {
  transform: scale(1.05);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
}

@media (hover: hover) and (pointer: fine) {
  .mobile-app-frame:hover {
    transform: translateY(-8px);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.25);
  }
}
.inside-swiper-container .swiper-button-next,
.inside-swiper-container .swiper-button-prev {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: white;
  border: 2px solid #e5e7eb;
  color: #6b5df5;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(2,6,23,0.1);
}
.inside-swiper-container .swiper-button-next:hover,
.inside-swiper-container .swiper-button-prev:hover {
  background: #6b5df5;
  color: white;
  border-color: #6b5df5;
  box-shadow: 0 6px 16px rgba(107, 93, 245, 0.3);
}
.inside-swiper-container .swiper-button-next::after,
.inside-swiper-container .swiper-button-prev::after {
  font-size: 16px;
  font-weight: bold;
}

/* Enhanced Swiper pagination */
.inside-swiper-container .swiper-pagination {
  position: static;
  margin-top: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.inside-swiper-container .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #e5e7eb;
  opacity: 1;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}
.inside-swiper-container .swiper-pagination-bullet::before {
  content: '';
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: 999px;
  background: transparent;
  transition: background 0.3s ease;
}
.inside-swiper-container .swiper-pagination-bullet:hover::before {
  background: rgba(107, 93, 245, 0.1);
}
.inside-swiper-container .swiper-pagination-bullet-active {
  background: linear-gradient(135deg, #6b5df5 0%, #8b7dff 100%);
  width: 24px;
  box-shadow: 0 4px 12px rgba(107, 93, 245, 0.3);
}

/* Responsive sizing for feature cards */
@media (max-width: 575.98px) {
  .feature-card { padding: 16px; }
  .feature-title { font-size: 1.25rem; }
}

/* Ensure feature icon is centered on phones */
@media (max-width: 575.98px) {
  .inside-swiper-container .swiper-slide {
    display: flex;
    justify-content: center;
  }
  .inside-swiper-container .swiper-slide .feature-card {
    width: 100%;
    text-align: center;
  }
  .inside-swiper-container .feature-card .feature-icon {
    margin: 0 auto 10px;
    display: inline-flex;
  }
}

/* Inside App hero */
.inside-hero {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}
.inside-hero .section-title .title {
  margin-bottom: 6px;
}
.inside-hero .section-title p {
  color: #4b5563;
  margin-bottom: 0;
}
.download-buttons .inside-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  color: #fff;
  border-radius: 999px;
  padding: 10px 18px;
  line-height: 1.2;
  background-image: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  box-shadow: 0 10px 18px rgba(99,102,241,0.25);
}
.download-buttons .inside-btn.alt {
  background-image: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  box-shadow: 0 10px 18px rgba(59,130,246,0.25);
}
.download-buttons .inside-btn .inside-btn-icon {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
}
.download-buttons .inside-btn .inside-btn-text {
  display: inline-block;
}
/* Blog filters alignment */
#blog-filters-ssr .form-select,
#blog-filters-ssr .form-control {
  min-width: 160px;
}
#blog-filters-ssr .row {
  row-gap: 8px;
}
@media (max-width: 575.98px) {
  #blog-filters-ssr .form-select,
  #blog-filters-ssr .form-control { width: 100%; }
}

/* Nice select styling for filters */
#blog-filters-ssr .nice-select.form-select {
  border-radius: 8px;
  border-color: #e5e7eb;
  height: 42px;
  line-height: 40px;
  padding: 0 38px 0 12px;
  color: #111827;
}
#blog-filters-ssr .nice-select.form-select:after {
  right: 12px;
}
#blog-filters-ssr .nice-select.form-select .list {
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(2,6,23,0.12);
}
#blog-filters-ssr .nice-select.form-select .option.focus,
#blog-filters-ssr .nice-select.form-select .option.selected.focus,
#blog-filters-ssr .nice-select.form-select .option:hover {
  background: #f3f4f6;
}

/* About page styles */
.about-hero {
  border-radius: 30px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  padding: 72px 0 96px;
  position: relative;
}
.about-hero:after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(1200px 400px at 50% -10%, rgba(131,91,244,0.12), transparent 70%),
              radial-gradient(800px 300px at 80% 0%, rgba(59,130,246,0.10), transparent 70%);
}
.about-hero .page-header-title {
  font-size: 42px;
  line-height: 1.2;
}
.about-hero .page-header-desc {
  color: #4b5563;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.about-hero .page-header-title { margin-bottom: 8px; }
.about-card {
  border: 1px solid #eef0f4;
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 18px rgba(2,6,23,0.06);
}
.about-list { list-style: none; padding: 0; margin: 0; }
.about-list li { margin: 8px 0; color: #374151; }
.about-list i { color: var(--brand-primary); margin-right: 8px; }
.about-illustration { width: 100%; height: auto; border-radius: 16px; box-shadow: 0 10px 22px rgba(2,6,23,0.12); }

/* Dynamic about content typography */
#dynamic-page-content .title { margin-bottom: 12px; }
#dynamic-page-content .desc p { margin-bottom: 12px; color: #334155; }
#dynamic-page-content .desc ul { padding-left: 18px; margin: 8px 0 12px; }
#dynamic-page-content .desc li { margin: 6px 0; }
.about-body { max-width: 860px; margin: 0 auto; }

/* About mission layout/spacing */
#about-mission .about-card { display: flex; flex-direction: column; justify-content: center; height: 100%; }
#about-mission .mission-title { margin-bottom: 10px; }
#about-mission .mission-text { color: #334155; line-height: 1.7; }
#about-mission .mission-text p { margin-bottom: 10px; }
#about-mission .about-list { margin-top: 12px; }
#about-mission .about-list li { display: flex; align-items: flex-start; gap: 8px; }
#about-mission .about-list i { margin-top: 3px; }
#about-mission .about-illustration { display: block; margin: 0 auto; max-width: 520px; }
@media (min-width: 992px) {
  #about-mission .about-illustration { margin-left: auto; }
}

/* Make mission card and image equal height on md+ */
@media (min-width: 768px) {
  #about-mission .row.align-items-center { align-items: stretch !important; }
  #about-mission .about-card { height: 100%; }
  #about-mission .about-illustration {
    max-width: none;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
  }
}

.value-item {
  text-align: center;
  background: #fff;
  border: 1px solid #eef0f4;
  border-radius: 16px;
  padding: 20px;
  height: 100%;
  box-shadow: 0 4px 12px rgba(2,6,23,0.06);
}
.value-item .value-icon {
  width: 56px; height: 56px; border-radius: 14px; margin: 0 auto 10px;
  display: grid; place-items: center; background: #f2f1ff; color: #6b5df5; font-size: 22px;
}
.value-item h4 { margin-bottom: 6px; }
.value-item p { color: #4b5563; margin: 0; }

.about-cta {
  border: 1px solid #eef0f4;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  padding: 28px;
  box-shadow: 0 8px 18px rgba(2,6,23,0.06);
}

/* Values grid polish and subtle interactions */
#about-values .value-item { transition: transform .2s ease, box-shadow .2s ease; }
#about-values .value-item:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(2,6,23,0.12); }

/* Simple reveal animations */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

@media (max-width: 767.98px) {
  .about-hero .page-header-content { padding: 8px 8px 0; }
  #about-mission .about-card { text-align: center; }
  #about-mission .about-list { text-align: left; display: inline-block; }
}

@media (max-width: 575.98px) {
  .about-hero { padding: 48px 0 64px; }
  .about-hero .page-header-title { font-size: 32px; }
}
