/* TECHWI LP - Custom Styles */

/* Theme Variables */
.theme-dark {
  --tblr-body-bg: #0f172a;
  --tblr-card-bg: #1e293b;
  --tblr-border-color: #334155;
}

.theme-light {
  --tblr-body-bg: #f8fafc;
  --tblr-card-bg: #ffffff;
  --tblr-border-color: #e2e8f0;
}

/* Dark theme cards */
.theme-dark .card {
  background-color: #1e293b !important;
  border-color: #334155 !important;
}

.theme-dark .card-header {
  background-color: #0f172a !important;
  border-bottom-color: #334155 !important;
}

/* Light theme cards */
.theme-light .card {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
}

/* Header & Navigation */
.navbar {
  backdrop-filter: blur(10px);
  background-color: rgba(15, 23, 42, 0.8) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.theme-light .navbar {
  background-color: rgba(255, 255, 255, 0.9) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Dropdown Menu */
.dropdown-menu-large {
  min-width: 450px;
  padding: 0.5rem 0;
  border-radius: 0.75rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: #1e293b;
}

.theme-light .dropdown-menu-large {
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.dropdown-menu-large .dropdown-item {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  margin: 0.25rem 0.5rem;
  transition: all 0.2s ease;
}

.dropdown-menu-large .dropdown-item:hover {
  background-color: rgba(59, 130, 246, 0.1);
}

.theme-light .dropdown-menu-large .dropdown-item:hover {
  background-color: rgba(59, 130, 246, 0.05);
}

.dropdown-menu-large .dropdown-item .fw-bold {
  font-size: 0.95rem;
  margin-bottom: 0.125rem;
}

.dropdown-menu-large .dropdown-item .small {
  font-size: 0.8125rem;
  line-height: 1.3;
}

.dropdown-divider {
  margin: 0.5rem 0;
  opacity: 0.1;
}

/* Hero Video Section */
.hero-video-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-video-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 2;
}

.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 41, 59, 0.75) 100%);
  z-index: 3;
}

.theme-light .hero-video-overlay {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.7) 0%, rgba(30, 41, 59, 0.6) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
}

/* Hero text colors for video background */
#hero .text-white-50 {
  color: rgba(255, 255, 255, 0.7) !important;
}

#hero .badge.bg-primary-lt {
  background-color: rgba(59, 130, 246, 0.2) !important;
  color: #60a5fa !important;
}

/* Hero Scroll Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  animation: bounce 2s infinite;
}

.scroll-down-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.scroll-down-link:hover {
  color: rgba(255, 255, 255, 1);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Responsive adjustments for hero */
@media (max-width: 768px) {
  .hero-video-section {
    height: auto;
    min-height: 100vh;
  }
  
  .hero-scroll-indicator {
    bottom: 1rem;
  }
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slideUp {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

@keyframes slideDown {
  0% { transform: translateY(-50%); }
  100% { transform: translateY(0); }
}

@keyframes slideRight {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Hero Section Animations */
#hero .hero-content h1 { opacity: 0; }
#hero.animate .hero-content h1 { animation: fadeInUp 0.8s ease-out 0.2s forwards; }
#hero .hero-content p { opacity: 0; }
#hero.animate .hero-content p { animation: fadeInUp 0.8s ease-out 0.4s forwards; }
#hero .hero-content .btn-list { opacity: 0; }
#hero.animate .hero-content .btn-list { animation: fadeInUp 0.8s ease-out 0.6s forwards; }
#hero .hero-content .badge { opacity: 0; }
#hero.animate .hero-content .badge { animation: fadeIn 0.8s ease-out forwards; }
#hero .card { opacity: 0; }
#hero.animate .card { animation: fadeInRight 0.6s ease-out 0.8s forwards; }

/* For Whom Section */
#for-whom {
  background: linear-gradient(180deg, var(--tblr-body-bg) 0%, rgba(30, 41, 59, 0.3) 100%);
}

.theme-light #for-whom {
  background: linear-gradient(180deg, var(--tblr-body-bg) 0%, rgba(241, 245, 249, 0.5) 100%);
}

/* Categories Carousel */
.categories-carousel-wrapper {
  position: relative;
  overflow: hidden;
  padding: 1rem 0;
}

.categories-carousel {
  overflow: hidden;
  width: 100%;
}

.categories-track {
  display: flex;
  gap: 1rem;
  animation: slideRight 40s linear infinite;
  width: fit-content;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  color: var(--tblr-body-color);
  font-size: 0.95rem;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.theme-light .category-pill {
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.category-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.theme-light .category-pill:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Static Highlight Pill (overlaying on right) */
.category-pill-highlight-static {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: inline-flex;
  align-items: center;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #000;
  font-weight: 600;
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(251, 191, 36, 0.4);
  max-width: 500px;
  border: none;
}

.theme-light .category-pill-highlight-static {
  box-shadow: 0 8px 24px rgba(251, 191, 36, 0.5);
}

/* Add gradient fade on right side of carousel */
.categories-carousel-wrapper::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 200px;
  background: linear-gradient(to left, var(--tblr-body-bg) 0%, transparent 100%);
  pointer-events: none;
  z-index: 5;
}

.theme-light .categories-carousel-wrapper::after {
  background: linear-gradient(to left, rgba(248, 250, 252, 1) 0%, transparent 100%);
}

/* Pause animation on hover */
.categories-carousel-wrapper:hover .categories-track {
  animation-play-state: paused;
}

/* Responsive adjustments for highlight pill */
@media (max-width: 991px) {
  .category-pill-highlight-static {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    margin-top: 1rem;
    width: 100%;
    max-width: 100%;
  }
  
  .categories-carousel-wrapper::after {
    display: none;
  }
}

/* Statistics Cards */
.stats-card {
  background: rgba(30, 41, 59, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.theme-light .stats-card {
  background: rgba(255, 255, 255, 0.8) !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.stats-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.theme-light .stats-card:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.stats-number {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
}

.stats-description {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--tblr-text-muted);
}

/* For Whom Section Animations */
#for-whom h2 { opacity: 0; }
#for-whom.animate h2 { animation: fadeInUp 0.6s ease-out forwards; }
#for-whom p { opacity: 0; }
#for-whom.animate p { animation: fadeInUp 0.6s ease-out 0.1s forwards; }
#for-whom .categories-carousel-wrapper { opacity: 0; }
#for-whom.animate .categories-carousel-wrapper { animation: fadeIn 0.6s ease-out 0.2s forwards; }
#for-whom .stats-card { opacity: 0; }
#for-whom.animate .col-lg-4:nth-child(1) .stats-card { animation: fadeInUp 0.6s ease-out 0.3s forwards; }
#for-whom.animate .col-lg-4:nth-child(2) .stats-card { animation: fadeInUp 0.6s ease-out 0.4s forwards; }
#for-whom.animate .col-lg-4:nth-child(3) .stats-card { animation: fadeInUp 0.6s ease-out 0.5s forwards; }

/* Products Carousel Section */
#products-carousel {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.3) 0%, var(--tblr-body-bg) 100%);
}

.theme-light #products-carousel {
  background: linear-gradient(180deg, rgba(241, 245, 249, 0.5) 0%, var(--tblr-body-bg) 100%);
}

/* Carousel Controls */
.carousel-controls {
  display: flex;
  gap: 0.5rem;
}

.btn-carousel {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--tblr-body-color);
  transition: all 0.3s ease;
  cursor: pointer;
}

.theme-light .btn-carousel {
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.btn-carousel:hover {
  background-color: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.3);
  transform: scale(1.05);
}

.theme-light .btn-carousel:hover {
  background-color: rgba(59, 130, 246, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Carousel Container */
.products-carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  padding-right: 120px;
}

.products-carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  align-items: stretch;
}

.product-slide {
  min-width: calc(100% - 120px);
  flex-shrink: 0;
  padding: 0 0.5rem;
  display: flex;
}

.product-card {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 2.5rem;
  backdrop-filter: blur(10px);
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 550px;
  transition: all 0.3s ease;
}

.theme-light .product-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.theme-light .product-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.product-header {
  margin-bottom: 1.5rem;
}

.product-title {
  font-size: 1.75rem;
  font-weight: 700;
  display: inline;
  margin-right: 0.5rem;
}

.product-subtitle {
  font-size: 1.75rem;
  font-weight: 300;
  color: var(--tblr-text-muted);
}

.product-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--tblr-text-muted);
  margin-bottom: 2rem;
}

.product-screenshot {
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-light .product-screenshot {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.product-screenshot img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.product-card:hover .product-screenshot img {
  transform: scale(1.02);
}

/* Carousel Indicators */
.carousel-indicators {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  padding: 0;
  position: relative;
  z-index: 10;
}

.indicator-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background-color: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  display: block;
}

.theme-light .indicator-dot {
  border-color: rgba(0, 0, 0, 0.4);
}

.indicator-dot:hover {
  border-color: rgba(59, 130, 246, 0.9);
  transform: scale(1.3);
}

.indicator-dot.active {
  background-color: #3b82f6;
  border-color: #3b82f6;
  width: 12px;
  height: 12px;
}

/* Products Carousel Animations */
#products-carousel h2 { opacity: 0; }
#products-carousel.animate h2 { animation: fadeInUp 0.6s ease-out forwards; }
#products-carousel .carousel-controls { opacity: 0; }
#products-carousel.animate .carousel-controls { animation: fadeInLeft 0.6s ease-out 0.1s forwards; }
#products-carousel .products-carousel-container { opacity: 0; }
#products-carousel.animate .products-carousel-container { animation: fadeIn 0.8s ease-out 0.2s forwards; }
#products-carousel .carousel-indicators { opacity: 0; }
#products-carousel.animate .carousel-indicators { animation: fadeInUp 0.6s ease-out 0.4s forwards; }

/* Responsive */
@media (max-width: 768px) {
  .carousel-controls {
    display: none;
  }
  
  .products-carousel-container {
    padding-right: 50px;
  }
  
  .product-slide {
    min-width: calc(100% - 50px);
  }
  
  .product-card {
    padding: 1.5rem;
  }
  
  .product-title,
  .product-subtitle {
    font-size: 1.25rem;
  }
  
  .product-description {
    font-size: 1rem;
  }
}

/* Everything Section */
#everything .display-5 { opacity: 0; }
#everything.animate .display-5 { animation: fadeInUp 0.6s ease-out forwards; }
#everything .row:nth-child(2) .col:nth-child(1) { opacity: 0; }
#everything.animate .row:nth-child(2) .col:nth-child(1) { animation: fadeIn 0.6s ease-out 0.1s forwards; }
#everything .row:nth-child(2) .col:nth-child(2) { opacity: 0; }
#everything.animate .row:nth-child(2) .col:nth-child(2) { animation: fadeIn 0.6s ease-out 0.2s forwards; }
#everything .row:nth-child(3) .col:nth-child(1) { opacity: 0; }
#everything.animate .row:nth-child(3) .col:nth-child(1) { animation: fadeIn 0.6s ease-out 0.3s forwards; }
#everything .row:nth-child(3) .col:nth-child(2) { opacity: 0; }
#everything.animate .row:nth-child(3) .col:nth-child(2) { animation: fadeIn 0.6s ease-out 0.4s forwards; }
#everything .row:nth-child(3) .col:nth-child(3) { opacity: 0; }
#everything.animate .row:nth-child(3) .col:nth-child(3) { animation: fadeIn 0.6s ease-out 0.5s forwards; }
#everything .row:nth-child(4) .col { opacity: 0; }
#everything.animate .row:nth-child(4) .col { animation: fadeInUp 0.6s ease-out 0.6s forwards; }

/* Features Section */
#features .card { opacity: 0; }
#features.animate .card { animation: fadeIn 0.6s ease-out 0.2s forwards; }
#features .col-md-6:nth-child(1) .text-center { opacity: 0; }
#features.animate .col-md-6:nth-child(1) .text-center { animation: scaleIn 0.6s ease-out 0.1s forwards; }
#features .col-md-6:nth-child(2) .text-center { opacity: 0; }
#features.animate .col-md-6:nth-child(2) .text-center { animation: scaleIn 0.6s ease-out 0.2s forwards; }
#features .col-md-6:nth-child(3) .text-center { opacity: 0; }
#features.animate .col-md-6:nth-child(3) .text-center { animation: scaleIn 0.6s ease-out 0.3s forwards; }
#features .col-md-6:nth-child(4) .text-center { opacity: 0; }
#features.animate .col-md-6:nth-child(4) .text-center { animation: scaleIn 0.6s ease-out 0.4s forwards; }

/* About Section */
#about .card { opacity: 0; }
#about.animate .card { animation: fadeInUp 0.6s ease-out 0.2s forwards; }

/* Pricing Section */
#pricing .text-center { opacity: 0; }
#pricing.animate .text-center { animation: fadeInUp 0.6s ease-out forwards; }
#pricing .row:nth-child(2) .col:nth-child(1) { opacity: 0; }
#pricing.animate .row:nth-child(2) .col:nth-child(1) { animation: fadeInLeft 0.6s ease-out 0.2s forwards; }
#pricing .row:nth-child(2) .col:nth-child(2) { opacity: 0; }
#pricing.animate .row:nth-child(2) .col:nth-child(2) { animation: fadeInRight 0.6s ease-out 0.3s forwards; }
#pricing .row:nth-child(3) { opacity: 0; }
#pricing.animate .row:nth-child(3) { animation: fadeInUp 0.6s ease-out 0.5s forwards; }

/* Testimonials Section */
#testimonials { background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); }
.theme-light #testimonials { background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%); }
#testimonials .card { opacity: 0; }
#testimonials.animate .card { animation: fadeIn 0.6s ease-out forwards; }
#testimonials.animate .col:nth-child(1) .card { animation-delay: 0.1s; }
#testimonials.animate .col:nth-child(2) .card { animation-delay: 0.2s; }
#testimonials.animate .col:nth-child(3) .card { animation-delay: 0.3s; }
#testimonials.animate .col:nth-child(4) .card { animation-delay: 0.4s; }
#testimonials.animate .col:nth-child(5) .card { animation-delay: 0.5s; }
#testimonials.animate .col:nth-child(6) .card { animation-delay: 0.6s; }
#testimonials.animate .col:nth-child(7) .card { animation-delay: 0.7s; }
#testimonials.animate .col:nth-child(8) .card { animation-delay: 0.8s; }
#testimonials.animate .col:nth-child(9) .card { animation-delay: 0.9s; }

/* Integrations Section */
#integrations { background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); overflow: hidden; }
.integration-columns { display: flex; gap: 1.5rem; height: 500px; overflow: hidden; }
.integration-column { flex: 1; display: flex; flex-direction: column; gap: 1.5rem; }
.integration-column:nth-child(1), .integration-column:nth-child(3) { animation: slideUp 20s linear infinite; }
.integration-column:nth-child(2), .integration-column:nth-child(4) { animation: slideDown 20s linear infinite; }
.integration-item { background-color: #1e293b; border-radius: 0.5rem; padding: 1.5rem; text-align: center; box-shadow: 0 4px 6px rgba(0,0,0,0.1); flex-shrink: 0; }
.integration-logo { width: 80px; height: 80px; margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center; border-radius: 0.5rem; background-color: rgba(255,255,255,0.05); font-size: 2rem; }
.integration-name { font-weight: 600; color: #fff; margin-bottom: 0.5rem; }
.integration-description { font-size: 0.875rem; color: rgba(255,255,255,0.7); }

/* Footer */
.footer { margin-top: 3rem; padding: 3rem 0 2rem; border-top: 1px solid rgba(0,0,0,0.05); }
.theme-dark .footer { border-top: 1px solid rgba(255,255,255,0.1); }
.footer h2 { font-size: 1.5rem; }
.footer h4 { font-size: 1rem; font-weight: 600; }
.footer a { text-decoration: none; transition: color 0.2s; }
.footer a:hover { color: var(--tblr-primary) !important; }
.footer hr { opacity: 0.1; }
.theme-dark .footer hr { opacity: 0.2; }

/* Grid Layouts */
#pricing .row:nth-child(2), #testimonials .row { display: flex; flex-wrap: wrap; }
#pricing .row:nth-child(2) .col, #testimonials .col { display: flex; flex-direction: column; }
#pricing .card { flex: 1; }

/* Hover Effects */
#everything .card, #pricing .card { transition: transform 0.2s, box-shadow 0.2s; }
#everything .card:hover { transform: translateY(-2px); }
#pricing .card:hover { transform: translateY(-5px); }

/* Responsive */
@media (max-width: 991px) {
  .integration-columns { height: 400px; }
  .integration-column:nth-child(3), .integration-column:nth-child(4) { display: none; }
}
