:root {
  --primary-color: #0046be; 
  --secondary-color: #f99d1c;
  --accent-red: #e34135;
  --accent-green: #8cc63f;
  --dark-bg: #1a1a1a;
  --light-bg: #f8f9fa;
  --text-color: #333333;
  --text-muted: #6b7280;
  --white: #ffffff;
  --container-width: 1400px;
  --header-height: 100px;
  --transition-speed: 0.3s;
  --border-radius: 8px;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', 'Inter', sans-serif;
  color: var(--text-color);
  background-color: var(--white);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-speed);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 40px;
}

.section {
  padding: 80px 0;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-speed);
  border: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: #0037a3;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: #e34135;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
  padding: 10px 25px;
  border-radius: 5px;
}

.btn-secondary:hover {
  background-color: #c9352b;
  transform: translateY(-2px);
}

/* Top Bar */
.top-bar {
  background-color: #f0f4f8;
  padding: 8px 0;
  font-size: 14px;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 40px;
}

.top-info {
  display: flex;
  gap: 25px;
  align-items: center;
  color: #666;
  font-weight: 500;
}

.top-links {
  display: flex;
  align-items: center;
  gap: 15px;
}

.top-links a i {
  color: #333;
  transition: var(--transition-speed);
}

/* Header */
.site-header {
  height: var(--header-height);
  background-color: var(--white);
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo img {
  height: 90px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.nav {
  flex-grow: 1;
  display: flex;
  justify-content: center;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1000;
  padding: 10px;
}

.mobile-menu-toggle span {
  width: 28px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Mobile Nav Overlay */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  height: 100vh;
  background-color: var(--white);
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: 100px 40px;
  gap: 30px;
  box-shadow: -10px 0 30px rgba(0,0,0,0.1);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav a {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-color);
  text-decoration: none;
}

.mobile-nav a.active {
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  font-weight: 700;
  font-size: 16px;
  color: #1e293b;
  text-transform: capitalize;
  transition: all 0.3s ease;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-actions i {
  font-size: 22px;
  color: #222;
  cursor: pointer;
  transition: var(--transition-speed);
}

.header-actions i:hover {
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  position: relative;
  height: 650px;
  background-color: #f0f4f7;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease-in-out, visibility 1s;
  z-index: 1;
  background-color: #f0f4f7;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 10;
}

.hero-slide .container {
  position: relative;
  z-index: 20;
  pointer-events: none;
}

.hero-content {
  width: 45%;
  pointer-events: auto;
  transform: translateX(-50px);
  transition: transform 1s ease-out;
  padding-left: 8%;
  z-index: 20;
}

.hero-slide.active .hero-content {
  transform: translateX(0);
}

.hero-content h1 {
  font-size: 56px;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--primary-color);
  font-weight: 700;
  max-width: 800px;
}

.hero-content p {
  font-size: 22px;
  margin-bottom: 40px;
  color: #334155;
  line-height: 1.5;
  max-width: 550px;
}

.hero-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  z-index: 5;
  border-bottom-left-radius: 100px;
}

.hero-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(to right, #f0f4f7, transparent);
  pointer-events: none;
}

.hero-actions {
  display: flex;
  gap: 15px;
}

.btn-large {
  padding: 18px 45px;
  font-size: 15px;
  letter-spacing: 1px;
  border-radius: 50px;
  text-transform: uppercase;
}

.hero-dots {
  position: absolute;
  bottom: 30px;
  left: 20px;
  display: flex;
  gap: 10px;
  z-index: 20;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #d1d5db;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dot.active {
  background-color: var(--primary-color);
  width: 35px;
  border-radius: 10px;
}

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

/* Category Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.category-card {
  position: relative;
  height: 250px;
  overflow: hidden;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  transition: transform 0.5s ease;
}

.category-card:hover {
  transform: scale(1.02);
  z-index: 10;
}

.category-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.category-card h3 {
  position: relative;
  z-index: 2;
  font-size: 20px;
}

.category-card.blue { background-color: var(--primary-color); }
.category-card.orange { background-color: var(--secondary-color); }
.category-card.green { background-color: var(--accent-green); }

/* About Section */
.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-content h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.about-content p {
  margin-bottom: 20px;
  color: var(--text-muted);
}

/* Application Grid */
.app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.app-card {
  position: relative;
  height: 200px;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.app-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 70, 190, 0.8);
  color: var(--white);
  padding: 10px;
  text-align: center;
}

/* Features Section */
.features-section {
  background-color: #f9f9f9;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.feature-item {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.feature-icon {
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Footer */
.site-footer {
  background-color: #333;
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  margin-bottom: 20px;
  font-size: 18px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid #444;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Chat Banner */
.chat-banner {
  padding: 60px;
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 80px;
  text-align: left;
}

.chat-content {
  max-width: 60%;
}

.chat-banner h2 {
  font-size: 36px;
  margin-bottom: 15px;
}

/* --- Comprehensive Responsive System --- */

@media (max-width: 1400px) {
  .container {
    max-width: 95%;
  }
}

@media (max-width: 1200px) {
  .hero-content h1 {
    font-size: 48px;
  }
}

@media (max-width: 1024px) {
  .nav {
    display: none; /* Hide standard nav for mobile */
  }

  /* Hamburger Toggle */
  .mobile-menu-toggle {
    display: flex !important;
  }

  .header-actions {
    display: none;
  }

  .hero-slide {
    padding-left: 5%;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .hero-content {
    width: 90%;
    margin-bottom: 40px;
  }

  .hero-image {
    width: 80%;
    margin: 0 auto;
  }

  .footer-grid, .category-grid, .app-grid, .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .top-bar {
    display: none; /* Hide top bar on tablet/mobile if it gets messy */
  }

  .hero-content h1 {
    font-size: 32px;
  }

  .hero-image {
    width: 100%;
    opacity: 0.4;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.2);
    z-index: 10;
  }

  .hero-content {
    width: 100%;
    z-index: 20;
    pointer-events: none;
    transform: none;
    padding: 20px;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(10px);
    border-radius: 20px;
  }

  .hero-content .btn-group {
    pointer-events: auto;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 32px;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .footer-grid, .category-grid, .app-grid, .stats-grid, .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  /* Generic fixes for flex rows that are hardcoded in HTML styles */
  [style*="display: flex; gap: 60px;"] {
    flex-direction: column !important;
    gap: 30px !important;
  }

  [style*="display: grid; grid-template-columns: repeat(2, 1fr);"] {
    grid-template-columns: 1fr !important;
  }

  /* Contact Page Grid Fix */
  .container[style*="display: flex; max-width: 1100px;"] {
    flex-direction: column !important;
  }
  
  div[style*="width: 40%;"] {
    width: 100% !important;
    padding: 40px 20px !important;
  }
  
  div[style*="width: 60%;"] {
    width: 100% !important;
    padding: 40px 20px !important;
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding: 30px 20px !important;
    width: 95% !important;
  }

  .hero-content h1 {
    font-size: 24px;
    line-height: 1.2;
    margin-bottom: 10px;
  }
  
  .hero-content p {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 20px;
  }
  
  .container {
    padding: 0 15px;
  }

  .btn {
    width: 100%;
    margin-bottom: 10px;
    padding: 12px;
    font-size: 15px;
  }

  .btn-group {
    flex-direction: column;
    width: 100%;
  }

  /* Hide most of the top bar content to keep it clean */
  .top-bar-left span {
    display: none;
  }
  
  .top-bar-right {
    width: 100%;
    justify-content: center;
  }

  /* Chat Banner Mobile Fix */
  .chat-banner {
    flex-direction: column;
    padding: 60px 20px !important;
    text-align: center;
    border-radius: 0 !important;
    margin: 0 -15px 50px !important;
    gap: 30px;
  }

  .chat-content {
    max-width: 100%;
  }

  .chat-banner .btn {
    width: auto !important;
    min-width: 200px;
  }
}

/* Animations */
.fade-out {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease-out;
}

.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.btn:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
