/* Modern, Professional AI Agency Stylesheet */
:root {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --accent-primary: #8b5cf6;
  --accent-secondary: #3b82f6;
  --text-main: #ffffff;
  --text-muted: #f5f5f5; 
  --glass-bg: rgba(30, 41, 59, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);
}

/* Overriding Bootstrap's faded text-muted */
.text-muted {
  color: var(--text-muted) !important;
  opacity: 1 !important;
}

html, body {
  overflow-x: hidden;
  max-width: 100vw;
  position: relative;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: 'Outfit', sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Utilities */
.transition-all {
  transition: all 0.3s ease-in-out;
}

/* Typography & Gradients */
.brand-gradient {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Buttons */
.btn-gradient {
  background: linear-gradient(135deg, #a855f7, var(--accent-secondary));
  color: #fff;
  border: none;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
  transition: all 0.3s ease;
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
  color: #fff;
}

.btn-outline-glass {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  backdrop-filter: blur(10px);
}

.btn-outline-glass:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
  transform: translateY(-2px);
}

/* Navigation - Glassmorphism */
.glass-nav {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar-brand {
  font-size: 1.5rem;
  letter-spacing: 0.5px;
}

.nav-link {
  color: var(--text-muted) !important;
  font-weight: 500;
  margin: 0 10px;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
  color: #fff !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background: var(--accent-secondary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 180px 0 120px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-image: radial-gradient(circle at top right, rgba(139, 92, 246, 0.15), transparent 40%),
                    radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.15), transparent 40%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/1.jpg') center/cover no-repeat;
  opacity: 0.2;
  mix-blend-mode: overlay;
  z-index: -1;
}

/* Cards & Services */
.service-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 40px 30px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  height: 100%;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), transparent);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(139, 92, 246, 0.3);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon-wrapper {
  width: 70px;
  height: 70px;
  border-radius: 20px;
  background: rgba(139, 92, 246, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--accent-primary);
  margin-bottom: 25px;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon-wrapper {
  background: var(--accent-primary);
  color: #fff;
  transform: rotate(5deg) scale(1.1);
}

/* Modals */
.glass-modal {
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
}

.glass-input {
  background: rgba(15, 23, 42, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  padding: 12px 20px;
  border-radius: 12px;
}

.glass-input:focus {
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2) !important;
  border-color: var(--accent-primary) !important;
}

.glass-input::placeholder {
  color: #64748b;
}

/* Stats Section */
.stats {
  background: linear-gradient(to right, var(--bg-secondary), var(--bg-primary));
  padding: 100px 0;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.stat-number {
  font-size: 4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-secondary), #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}

/* Footer layout */
.glass-footer {
  background: rgba(15, 23, 42, 0.9);
  border-top: 1px solid var(--glass-border);
}

.social-icon {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
  text-decoration: none;
  border: 1px solid transparent;
}

.social-icon:hover {
  background: var(--accent-primary);
  color: white;
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.2);
}

.footer-links a {
  color: var(--text-muted);
}
.footer-links a:hover {
  color: var(--accent-primary);
  padding-left: 5px;
}

/* CTA */
.cta-section {
  position: relative;
  padding: 120px 0;
  background: radial-gradient(circle at center, rgba(139, 92, 246, 0.1), transparent 70%);
}

.cta-box {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.1));
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 30px;
  padding: 60px 40px;
  backdrop-filter: blur(10px);
}

/* Utilities */
.text-gradient {
  background: linear-gradient(to right, #cfd9df 0%, #e2ebf0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* AI Chatbot Floating UI */
.chat-toggle-btn {
  position: fixed;
  bottom: 40px;
  right:50px;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.5);
  font-size: 26px;
  cursor: pointer;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.chat-toggle-btn:hover {
  transform: scale(1.1) rotate(-10deg);
  box-shadow: 0 15px 40px rgba(59, 130, 246, 0.6);
}

.chatbox {
  position: fixed;
  bottom: 110px;
  right: 30px;
  width: 380px;
  height: 500px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  z-index: 1050;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.6), 0 0 40px rgba(139, 92, 246, 0.15);
  animation: slideUpFade 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.chatbox-header {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(59, 130, 246, 0.15));
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--glass-border);
}

.chatbox-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chatbox-messages::-webkit-scrollbar {
  width: 6px;
}
.chatbox-messages::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
}

.chatbox-input {
  padding: 15px;
  border-top: 1px solid var(--glass-border);
  display: flex;
  gap: 12px;
  background: rgba(0, 0, 0, 0.2);
}

.chatbox-input input {
  flex: 1;
  height: 48px;
  font-size: 0.95rem;
}

.chatbox-input .send-btn {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* --- Mobile Responsiveness --- */

@media (max-width: 991.98px) {
  .hero {
    padding: 120px 0 80px;
  }
  
  .navbar-nav {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 20px;
    margin-top: 15px;
    border: 1px solid var(--glass-border);
  }

  .nav-link {
    margin: 5px 0;
    padding: 10px 15px;
  }

  .nav-link::after {
    display: none;
  }

  .lang-switcher {
    margin: 10px 0;
  }
}

@media (max-width: 767.98px) {
  .hero, .hero-premium {
    padding: 100px 0 60px !important;
    text-align: center;
  }

  h1.display-2 {
    font-size: 2.5rem !important;
  }

  .stat-number {
    font-size: 2.8rem !important;
  }

  .service-card, .service-3d-card {
    padding: 30px 20px !important;
  }

  .cta-box {
    padding: 40px 20px !important;
  }

  .chatbox {
    width: calc(100% - 40px);
    right: 20px;
    left: 20px;
    bottom: 100px;
    height: 450px;
  }

  .chat-toggle-btn {
    width: 55px;
    height: 55px;
    right: 20px;
    bottom: 20px;
  }

  .footer-title {
    font-size: 2rem;
    margin-bottom: 1.5rem !important;
  }
  
  .glass-footer {
    text-align: center;
  }
  
  .social-icons {
    justify-content: center;
    margin-top: 20px;
  }
}

@media (max-width: 575.98px) {
  h1.display-2 {
    font-size: 2.2rem !important;
  }

  .hero h3, .hero-premium h3 {
    font-size: 1.2rem !important;
  }

  .btn-gradient, .btn-outline-glass {
    width: 100%;
    margin-bottom: 10px;
  }
  
  .d-flex.gap-4 {
    gap: 10px !important;
  }
  
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
}