:root {
  --primary: #0066ff;
  --secondary: #6b21a8;
  --success: #059669;
  --warning: #f59e0b;
  --danger: #dc2626;
  --info: #3b82f6;
  --dark: #0a1628;
  --light: #f8f9fa;
  --muted: #6b7280;
}

* {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #1f2937;
  background-color: #ffffff;
  line-height: 1.6;
}

html {
  scroll-behavior: smooth;
}

/* Override Bootstrap container for reduced horizontal padding */
.container {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 2rem !important;
  padding-right: 2rem !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.container-fluid {
  padding-left: 2rem !important;
  padding-right: 2rem !important;
}

/* Mobile responsiveness for container */
@media (max-width: 767.98px) {
  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .container-fluid {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

/* ===== NAVBAR CONTAINER - COMPLETELY ISOLATED ===== */
/* Navbar */
.navbar-custom {
  background: linear-gradient(135deg, #0a1628 0%, #1a3a52 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 0;
  width: 100%;
}

.navbar-custom .container {
  max-width: 100% !important;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
  margin: 0 !important;
  display: flex;
  align-items: center;
  width: 100%;
}

.navbar-custom .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.8) !important;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar-custom .navbar-nav .nav-link:hover {
  color: #0066ff !important;
}

.navbar-brand {
  font-size: 1.5rem;
  letter-spacing: -0.5px;
  color: white !important;
  font-weight: bold;
  padding: 0.5rem 1rem !important;
  margin: 0 !important;
  flex-shrink: 0;
  margin-right: auto !important;
  order: -1;
}

.navbar-custom .navbar-collapse {
  flex: 0 1 auto;
  margin-left: auto;
}

/* ===== HERO SECTION - COMPLETELY ISOLATED ===== */
/* Hero Section */
.hero-section {
  height: 33.33vh;
  min-height: 400px;
  position: relative;
  overflow: visible;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
}

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

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 1;
}

.hero-slide-active {
  opacity: 1;
  z-index: 2;
}

.hero-slide-bg {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-slide-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(102, 51, 153, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-slide-bg::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: 5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Hero Content Layout */
.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
}

.hero-text-container {
  position: relative;
  width: 100%;
  padding: 0 1.5rem;
  height: 100%;
}

.hero-text-item {
  position: absolute;
  top: 50%;
  left: 1.5rem;
  right: 1.5rem;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
  width: calc(100% - 3rem);
}

/* Hero Text Responsive Sizing */
.hero-text-item .display-4 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem !important;
}

.hero-text-item .lead {
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 1.5rem !important;
}

/* Mobile Devices (< 576px) */
@media (max-width: 575.98px) {
  .hero-section {
    height: auto;
    min-height: auto;
    padding: 2rem 0;
    overflow: visible;
  }

  .hero-text-container {
    padding: 0 1rem;
    height: auto;
  }

  .hero-text-item {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    width: 100%;
    padding: 1.5rem 0;
  }

  .hero-text-item .display-4 {
    font-size: 1.75rem;
    margin-bottom: 1rem !important;
  }

  .hero-text-item .lead {
    font-size: 0.95rem;
    margin-bottom: 1rem !important;
  }

  .hero-text-item .btn {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem !important;
  }

  .hero-visual-container {
    display: none !important;
  }

  .hero-dots {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    margin-top: 1rem;
  }
}

/* Tablets (576px - 768px) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section {
    height: auto;
    min-height: auto;
    padding: 1.5rem 0;
    overflow: visible;
  }

  .hero-text-container {
    padding: 0 1.5rem;
    height: auto;
  }

  .hero-text-item {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    width: 100%;
    padding: 1.5rem 0;
  }

  .hero-text-item .display-4 {
    font-size: 2.25rem;
    margin-bottom: 1rem !important;
  }

  .hero-text-item .lead {
    font-size: 1rem;
    margin-bottom: 1rem !important;
  }

  .hero-text-item .btn {
    font-size: 0.95rem;
    padding: 0.65rem 1.25rem !important;
  }

  .hero-visual-container {
    display: none !important;
  }

  .hero-dots {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    margin-top: 1rem;
  }
}

/* Medium Devices (768px - 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    height: 35vh;
    min-height: 400px;
    overflow: visible;
  }

  .hero-text-container {
    padding: 0 1rem;
    height: 100%;
  }

  .hero-text-item {
    left: 1rem;
    right: 1rem;
    width: calc(100% - 2rem);
  }

  .hero-text-item .display-4 {
    font-size: 2.5rem;
    margin-bottom: 1rem !important;
  }

  .hero-text-item .lead {
    font-size: 1.05rem;
    margin-bottom: 1rem !important;
  }

  .hero-text-item .btn {
    font-size: 0.95rem;
  }

  .hero-visual-container {
    display: none !important;
  }
}

/* Large Devices (992px and up) */
@media (min-width: 992px) {
  .hero-text-item .display-4 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem !important;
  }

  .hero-text-item .lead {
    font-size: 1.15rem;
    margin-bottom: 1.5rem !important;
  }

  .hero-visual-container {
    display: flex;
  }
}

/* Extra Large Devices (1200px and up) */
@media (min-width: 1200px) {
  .hero-text-item .display-4 {
    font-size: 3.5rem;
  }

  .hero-text-item .lead {
    font-size: 1.2rem;
  }
}

.hero-text-item-active {
  opacity: 1;
  pointer-events: auto;
}

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

.hero-visual-container {
  flex: 1;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
  max-width: 50%;
}

@media (min-width: 992px) {
  .hero-visual-container {
    display: flex;
  }
}

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

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.dot:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: scale(1.2);
}

.dot-active {
  background: #0066ff;
  border-color: #0066ff;
  transform: scale(1.3);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  height: 400px;
}

.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 20px;
  animation: float 6s ease-in-out infinite;
}

.floating-card.card-1 {
  width: 200px;
  height: 120px;
  top: 30px;
  left: 40px;
  animation-delay: 0s;
}

.floating-card.card-2 {
  width: 150px;
  height: 150px;
  top: 200px;
  right: 30px;
  animation-delay: 1s;
}

.floating-card.card-3 {
  width: 180px;
  height: 100px;
  bottom: 40px;
  left: 100px;
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.blob-shape {
  position: absolute;
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, rgba(102, 51, 153, 0.1), rgba(0, 102, 255, 0.1));
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  animation: blob 8s infinite;
  bottom: 20px;
  right: -50px;
}

@keyframes blob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, -30px) scale(1.1); }
}

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

.reveal-text {
  animation: revealText 0.8s ease forwards;
  opacity: 0;
}

/* Stats Section */
.stat-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.count {
  font-variant-numeric: tabular-nums;
}

/* Service Cards */
.service-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 25px 15px;
  text-align: center;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--secondary, #6366f1));
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.service-card-full:hover .service-icon {
  transform: scale(1.1);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.35);
}

.service-card-full {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 25px 15px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.service-card-full:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Service keyword highlights */
.kw {
  color: var(--primary);
  font-weight: 600;
}

/* Why Cards */
.why-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.why-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
  transform: translateY(-5px);
}

.why-icon {
  font-size: 2.5rem;
  color: var(--primary);
}

/* Data Service Cards */
.data-service-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  transition: all 0.3s ease;
}

.data-service-card:hover {
  transform: translateY(-6px);
  border-color: var(--info);
  box-shadow: 0 15px 35px rgba(59, 130, 246, 0.1);
}

/* Step Badges */
.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--info));
  color: white;
  font-size: 28px;
  font-weight: bold;
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(0, 102, 255, 0.3);
}

/* Pricing Cards */
.pricing-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 30px 25px;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.pricing-card.featured {
  border: 2px solid var(--primary);
  box-shadow: 0 20px 40px rgba(0, 102, 255, 0.2);
  transform: scale(1.05);
}

.pricing-card-full {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 30px;
  transition: all 0.3s ease;
}

.pricing-card-full:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.price {
  color: var(--primary);
  margin-bottom: 20px;
}

/* Portfolio Cards */
.portfolio-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.portfolio-card-full {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.portfolio-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

.portfolio-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-detail-image {
  width: 100%;
  height: 400px;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-color: #f3f4f6;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 5rem;
  margin-bottom: 30px;
  overflow: hidden;
}

/* Blog Cards */
.blog-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.blog-card-full {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.blog-card-full:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.blog-image {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-detail-image {
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  margin-bottom: 30px;
}

.blog-content p {
  line-height: 1.8;
  font-size: 1.05rem;
}

/* Testimonials */
.testimonial-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
  border-color: var(--primary);
}

/* Footer */
.footer {
  background: #0a1628;
  color: white;
  padding: 50px 0 20px;
  margin-top: 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #0052cc);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 102, 255, 0.3);
  background: linear-gradient(135deg, #0052cc, var(--primary));
}

.btn-outline-primary {
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.btn-light {
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Forms */
.form-control,
.form-select {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
}

/* Contact Info */
.contact-info-item {
  transition: all 0.3s ease;
}

.contact-info-item:hover {
  transform: translateX(10px);
}

/* Value Cards */
.value-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Comparison Card */
.comparison-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.comparison-card:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Utilities */
.min-vh-50 {
  min-height: 50vh;
}

.text-muted {
  color: var(--muted) !important;
}

.bg-dark {
  background-color: var(--dark) !important;
}

.bg-light {
  background-color: var(--light) !important;
}

/* Badges */
.badge {
  padding: 8px 14px;
  font-weight: 600;
  border-radius: 6px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section {
    padding: 40px 0;
  }

  .display-4 {
    font-size: 2.5rem;
  }

  .pricing-card.featured {
    transform: scale(1);
  }

  .floating-card {
    display: none;
  }

  .blob-shape {
    display: none;
  }

  .cta-section {
    padding: 50px 0;
  }

  .navbar-light .navbar-nav .nav-link {
    padding-bottom: 0.5rem !important;
  }
}

/* Accordion */
.accordion-button {
  border: none;
  background-color: transparent;
  border-bottom: 1px solid #e5e7eb;
  border-radius: 0;
  font-weight: 600;
  padding: 20px 0;
}

.accordion-button:not(.collapsed) {
  background-color: transparent;
  color: var(--primary);
  box-shadow: none;
}

.accordion-button:focus {
  border-color: var(--primary);
  box-shadow: none;
}

.accordion-body {
  padding: 20px 0;
  border-top: 1px solid #e5e7eb;
}

/* Error Section */
.error-section {
  background: linear-gradient(135deg, #0a1628 0%, #1a3a52 100%);
  color: white;
}

/* Admin Sidebar */
.sidebar {
  position: fixed;
  top: 60px;
  bottom: 0;
  left: 0;
  padding: 20px 0;
  overflow-y: auto;
  background-color: #f8f9fa;
  border-right: 1px solid #e5e7eb;
}

.sidebar .nav-link {
  color: #6b7280;
  padding: 12px 20px;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
  color: var(--primary);
  background-color: rgba(0, 102, 255, 0.05);
  border-left-color: var(--primary);
}

main {
  margin-left: 16.666%;
}

@media (max-width: 768px) {
  .sidebar {
    display: none;
  }

  main {
    margin-left: 0;
  }

  .navbar-dark {
    background-color: var(--dark) !important;
  }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
