/* ============================================
   WebOptez Technologies - Bootstrap Custom Styles
   ============================================ */

/* CSS Variables */

:root {
  --primary: #060582;
  --primary-dark: #0178d4;
  --primary-light: #33a8fd;
  --background: #ffffff;
  --background-secondary: #f8fafc;
  --foreground: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --card-bg: rgba(255, 255, 255, 0.8);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.dark-mode {
  --background: #0a0a0f;
  --background-secondary: #111118;
  --foreground: #f8fafc;
  --muted: #94a3b8;
  --border: #1e293b;
  --card-bg: rgba(17, 17, 24, 0.8);
  --glass-bg: rgba(17, 17, 24, 0.7);
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--background);
    background-size: 28px 28px;
    background-image: repeating-linear-gradient(to right, #0192fd17, #0192fd03 1.4000000000000001px, var(--background) 1.4000000000000001px, var(--background));
    color: var(--foreground);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Typography */
h1, h2, h3, h4, h5, h6, p {
  font-weight: 700;
  line-height: 1.2;
  color: var(--foreground);
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-tag {
  display: inline-block;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 3rem;
  }
}

/* Section Padding */
.section-padding {
  padding: 5rem 0;
}

@media (min-width: 768px) {
  .section-padding {
    padding: 7rem 0;
  }
}

/* Glass Card */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  color: white;
  padding: 0.875rem 2rem;
  border-radius: 0.75rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -10px var(--primary);
}

.btn-secondary {
  background: var(--glass-bg);
  border: 1px solid var(--border);
  color: var(--foreground);
  padding: 0.875rem 2rem;
  border-radius: 0.75rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--background-secondary);
  border-color: var(--primary);
  color: var(--foreground);
}

.btn-theme {
  background: var(--glass-bg);
  border: 1px solid var(--border);
  color: var(--foreground);
  padding: 0.625rem;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.btn-theme:hover {
  background: var(--background-secondary);
  color: var(--foreground);
}

/* ============================================
   Header
   ============================================ */
#header {
  background: transparent;
  transition: all 0.3s ease;
  padding: 1rem 0;
}

#header.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0;
}

.logo-box {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--primary);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.125rem;
}

.brand-text {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--foreground);
}

.navbar-nav .nav-link {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--foreground);
}

.navbar-toggler {
  border: 1px solid var(--border);
  padding: 0.5rem;
  border-radius: 0.5rem;
  color: var(--foreground);
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.floating-element {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: float 20s ease-in-out infinite;
}

.elem-1 {
  width: 400px;
  height: 400px;
  background: var(--primary);
  top: -100px;
  right: -100px;
}

.elem-2 {
  width: 300px;
  height: 300px;
  background: var(--primary-light);
  bottom: -50px;
  left: -50px;
  animation-delay: -5s;
}

.elem-3 {
  width: 200px;
  height: 200px;
  background: var(--primary);
  top: 50%;
  left: 30%;
  animation-delay: -10s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(20px, -20px) scale(1.05); }
  50% { transform: translate(-10px, 20px) scale(0.95); }
  75% { transform: translate(-20px, -10px) scale(1.02); }
}

.badge-primary {
  background: rgba(1, 146, 253, 0.1);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-weight: 500;
  font-size: 0.875rem;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.5rem;
  }
}

@media (min-width: 992px) {
  .hero-title {
    font-size: 4rem;
  }
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 500px;
}

/* Dashboard Preview */
.dashboard-preview {
  position: relative;
  animation: floatSlow 6s ease-in-out infinite;
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.dashboard-card {
  max-width: 400px;
  margin-left: auto;
}

.chart-placeholder {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  height: 120px;
  margin-bottom: 1.5rem;
}

.chart-bar {
  flex: 1;
  background: linear-gradient(to top, var(--primary), var(--primary-light));
  border-radius: 0.25rem;
  animation: growBar 1s ease-out forwards;
}

@keyframes growBar {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

.metric-row {
  display: flex;
  justify-content: space-between;
}

.metric {
  text-align: center;
}

.metric-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
}

.metric-label {
  font-size: 0.75rem;
  color: var(--muted);
}

/* ============================================
   About Section
   ============================================ */
.stats-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.stat-icon {
  width: 4rem;
  height: 4rem;
  background: rgba(1, 146, 253, 0.1);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  flex-shrink: 0;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
}

.stat-label {
  color: var(--muted);
  font-size: 0.875rem;
}

/* ============================================
   Services Section
   ============================================ */
.bg-secondary-subtle {
  background: var(--background-secondary) !important;
}

.service-card {
  padding: 2rem;
}

.service-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: rgba(1, 146, 253, 0.1);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  transition: background 0.3s ease;
}

.service-card:hover .service-icon {
  background: rgba(1, 146, 253, 0.2);
}

.service-card h4 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.service-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s ease;
}

.service-link:hover {
  color: var(--primary);
  gap: 0.75rem;
}

/* ============================================
   Pricing Section
   ============================================ */
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.toggle-label {
  color: var(--muted);
  font-weight: 500;
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 32px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--border);
  border-radius: 32px;
  transition: 0.3s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 24px;
  width: 24px;
  left: 4px;
  bottom: 4px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
}

input:checked + .slider {
  background: var(--primary);
}

input:checked + .slider:before {
  transform: translateX(28px);
}

.pricing-card {
  text-align: center;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 0.25rem 1rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.pricing-card h4 {
     color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.price {
  margin: 1.5rem 0;
}

.price .currency {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--muted);
  vertical-align: top;
}

.price .amount {
  font-size: 3rem;
  font-weight: 800;
  color: var(--foreground);
}

.price .period {
  color: var(--muted);
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  text-align: left;
}

.features-list li {
  padding: 0.5rem 0;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.features-list li i {
  color: var(--primary);
}

/* ============================================
   Process Section
   ============================================ */
.process-timeline {
  position: relative;
}

.process-item {
  margin-bottom: 1.5rem;
}

.process-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.process-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: rgba(1, 146, 253, 0.1);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--primary);
  flex-shrink: 0;
}

.step-number {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.875rem;
}

.process-content h5 {
  margin: 0.25rem 0 0.5rem;
}

/* ============================================
   Testimonials Section
   ============================================ */
.testimonial-card {
  padding: 3rem;
}

.testimonial-avatar {
  width: 5rem;
  height: 5rem;
  background: rgba(1, 146, 253, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.testimonial-avatar i {
  font-size: 3rem;
  color: var(--primary);
}

.testimonial-text {
  font-size: 1.125rem;
  font-style: italic;
  color: var(--foreground);
  margin-bottom: 1.5rem;
}

.testimonial-metrics {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.metric-badge {
  background: rgba(1, 146, 253, 0.1);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
  width: 3rem;
  height: 3rem;
  background: var(--glass-bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
}

.carousel-control-prev {
  left: -1rem;
}

.carousel-control-next {
  right: -1rem;
}

@media (min-width: 768px) {
  .carousel-control-prev {
    left: -3rem;
  }
  .carousel-control-next {
    right: -3rem;
  }
}

/* Case Studies */
.case-study-card {
  padding: 1.5rem;
}

.case-study-header {
  margin-bottom: 1rem;
}

.case-tag {
  background: rgba(1, 146, 253, 0.1);
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.case-study-header h5 {
  margin: 0.5rem 0 0;
}

.before-after {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.before-after .before,
.before-after .after {
  text-align: center;
}

.before-after .label {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
}

.before-after .value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
}

.before-after .sublabel {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
}

.before-after i {
  color: var(--primary);
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 5rem 0;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.5rem;
}

.cta-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
}

.cta-section .btn-light {
  background: white;
  color: var(--primary);
  border: none;
  font-weight: 600;
}

.cta-section .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
  font-weight: 600;
}

.cta-section .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}

.footer-brand {
  text-decoration: none;
}

.footer-heading {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--foreground);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-links a {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--background-secondary);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--foreground);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--primary);
  color: white;
}

.contact-info {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-info li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.contact-info i {
  color: var(--primary);
}

.newsletter-form .form-control {
  background: var(--background-secondary);
  border: 1px solid var(--border);
  color: var(--foreground);
  border-radius: 0.75rem 0 0 0.75rem;
  padding: 0.75rem 1rem;
}

.newsletter-form .form-control:focus {
  background: var(--background-secondary);
  border-color: var(--primary);
  box-shadow: none;
  color: var(--foreground);
}

.newsletter-form .form-control::placeholder {
  color: var(--muted);
}

.newsletter-form .btn {
  border-radius: 0 0.75rem 0.75rem 0;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: var(--foreground);
}

/* ============================================
   WhatsApp Button
   ============================================ */
.whatsapp-btn {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 3.5rem;
  height: 3.5rem;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  z-index: 1000;
  animation: pulse 2s infinite;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  color: white;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
}

/* ============================================
   Promo Modal
   ============================================ */
#promoModal .modal-content {
  border: none;
  overflow: hidden;
}

#promoModal .btn-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  filter: var(--bs-btn-close-white-filter);
}

.dark-mode #promoModal .btn-close {
  filter: invert(1);
}

.promo-icon {
  width: 4rem;
  height: 4rem;
  background: rgba(1, 146, 253, 0.1);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.promo-icon i {
  font-size: 2rem;
  color: var(--primary);
}

#promoModal h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

/* ============================================
   Animations
   ============================================ */
.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 991px) {
  .navbar-collapse {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    padding: 1rem;
    border-radius: 1rem;
    margin-top: 1rem;
    border: 1px solid var(--border);
  }
  
  .navbar-nav {
    margin-bottom: 1rem;
  }
}

@media (max-width: 767px) {
  .section-padding {
    padding: 3rem 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .cta-title {
    font-size: 1.75rem;
  }
}