/* ============================================
   KASAM InfoSolutions - Main Stylesheet
   Edit this file in VSCode to customize colors,
   fonts, spacing, and other design elements.
   ============================================ */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ============================================
   CSS VARIABLES - EDIT THESE TO CUSTOMIZE
   ============================================ */
:root {
  /* KASAM Brand Colors - Change these to update site colors */
  --kasam-navy: #03063d;
  --kasam-navy-light: #0a0d4a;
  --kasam-navy-lighter: #1a1d5a;
  --kasam-gold: #ffba2f;
  --kasam-gold-light: #ffd700;
  --kasam-purple: #bc02e3;
  
  /* Text Colors */
  --text-white: #ffffff;
  --text-gray-100: #f3f4f6;
  --text-gray-300: #d1d5db;
  --text-gray-400: #9ca3af;
  --text-gray-500: #6b7280;
  
  /* Background Colors */
  --bg-dark: #02031f;
  --bg-darker: #010214;
  
  /* Border Colors */
  --border-gold: rgba(255, 186, 47, 0.2);
  --border-gold-hover: rgba(255, 186, 47, 0.5);
  
  /* Spacing */
  --section-padding: 6rem;
  --container-max-width: 1280px;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ============================================
   BASE STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--kasam-navy);
  color: var(--text-white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/* ============================================
   UTILITY CLASSES
   ============================================ */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

/* Text Gradient */
.text-gradient {
  background: linear-gradient(135deg, var(--kasam-gold) 0%, var(--kasam-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Section Padding */
.section-padding {
  padding: var(--section-padding) 0;
}

/* Flexbox Utilities */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

/* Grid Utilities */
.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, 1fr);
}

.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Text Alignment */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

/* Spacing */
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.mt-20 { margin-top: 5rem; }

.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* Width */
.w-full {
  width: 100%;
}

.max-w-2xl {
  max-width: 42rem;
}

.max-w-3xl {
  max-width: 48rem;
}

.max-w-4xl {
  max-width: 56rem;
}

/* Display */
.hidden {
  display: none;
}

.block {
  display: block;
}

.inline-block {
  display: inline-block;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 80px;
  transition: background-color var(--transition-normal), box-shadow var(--transition-normal);
}

.header.scrolled {
  background-color: rgba(3, 6, 61, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo img {
  height: 48px;
  width: auto;
}

.logo-text {
  display: none;
}

@media (min-width: 640px) {
  .logo-text {
    display: block;
  }
}

.logo-text .brand {
  color: var(--kasam-gold);
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.2;
}

.logo-text .tagline {
  color: var(--text-white);
  font-size: 0.75rem;
  margin-top: -2px;
}

/* Navigation */
.nav-desktop {
  display: none;
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }
}

.nav-link {
  padding: 0.5rem 1rem;
  color: var(--text-gray-300);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
  color: var(--kasam-gold);
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background-color: var(--kasam-navy-light);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-normal);
  z-index: 100;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--text-gray-300);
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-normal);
}

.dropdown-item:hover {
  color: var(--kasam-gold);
  background-color: rgba(255, 186, 47, 0.1);
}

/* CTA Button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--kasam-gold);
  color: var(--kasam-navy);
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.btn-primary:hover {
  background-color: rgba(255, 186, 47, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255, 186, 47, 0.3);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: flex;
  padding: 0.5rem;
  background: none;
  border: none;
  color: var(--text-white);
  cursor: pointer;
}

@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  background-color: rgba(3, 6, 61, 0.98);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-gold);
  padding: 1rem;
  z-index: 999;
}

.mobile-menu.active {
  display: block;
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-gray-300);
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--kasam-gold);
  background-color: rgba(255, 186, 47, 0.1);
}

.mobile-dropdown-items {
  margin-left: 1rem;
  margin-top: 0.5rem;
}

.mobile-dropdown-item {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text-gray-400);
  font-size: 0.875rem;
}

.mobile-dropdown-item:hover {
  color: var(--kasam-gold);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--kasam-navy) 0%, var(--kasam-navy-light) 50%, var(--kasam-navy) 100%);
}

.hero-glow {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  pointer-events: none;
}

.hero-glow::before,
.hero-glow::after {
  content: '';
  position: absolute;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  filter: blur(100px);
}

.hero-glow::before {
  top: 25%;
  left: 25%;
  background-color: rgba(255, 186, 47, 0.2);
}

.hero-glow::after {
  bottom: 25%;
  right: 25%;
  background-color: rgba(188, 2, 227, 0.2);
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 2rem 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: rgba(255, 186, 47, 0.1);
  border: 1px solid var(--border-gold);
  border-radius: 9999px;
  color: var(--kasam-gold);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-gray-300);
  max-width: 48rem;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  background-color: transparent;
  color: var(--kasam-gold);
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid var(--border-gold-hover);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.btn-secondary:hover {
  background-color: rgba(255, 186, 47, 0.1);
}

/* Hero Stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 5rem;
}

@media (min-width: 768px) {
  .hero-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--kasam-gold);
}

@media (min-width: 640px) {
  .stat-value {
    font-size: 2.5rem;
  }
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-gray-400);
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background-color: var(--kasam-navy-light);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  transition: all var(--transition-normal);
}

.card:hover {
  border-color: var(--border-gold-hover);
  transform: translateY(-4px);
}

.card-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 186, 47, 0.1);
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
}

.card-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--kasam-gold);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 0.75rem;
}

.card-description {
  font-size: 0.875rem;
  color: var(--text-gray-400);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--kasam-gold);
  font-size: 0.875rem;
  font-weight: 500;
}

.card-link:hover {
  color: rgba(255, 186, 47, 0.8);
}

/* ============================================
   SECTIONS
   ============================================ */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .section-title {
    font-size: 2.25rem;
  }
}

.section-description {
  font-size: 1rem;
  color: var(--text-gray-400);
  max-width: 42rem;
  margin: 0 auto;
}

/* Background Colors */
.bg-dark {
  background-color: var(--bg-dark);
}

.bg-navy {
  background-color: var(--kasam-navy);
}

.bg-navy-light {
  background-color: var(--kasam-navy-light);
}

/* ============================================
   SERVICES GRID
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================
   FEATURES LIST
   ============================================ */
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.feature-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 186, 47, 0.1);
  border-radius: var(--radius-lg);
  flex-shrink: 0;
}

.feature-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--kasam-gold);
}

.feature-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 0.25rem;
}

.feature-description {
  font-size: 0.875rem;
  color: var(--text-gray-400);
}

/* ============================================
   CHECK LIST
   ============================================ */
.check-list {
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-gray-300);
  margin-bottom: 0.75rem;
}

.check-list li::before {
  content: '';
  width: 1.25rem;
  height: 1.25rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ffba2f'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

/* ============================================
   CTA BOX
   ============================================ */
.cta-box {
  position: relative;
  background-color: var(--kasam-navy-light);
  border: 1px solid rgba(255, 186, 47, 0.3);
  border-radius: var(--radius-2xl);
  padding: 2.5rem;
  overflow: hidden;
}

@media (min-width: 768px) {
  .cta-box {
    padding: 4rem;
  }
}

.cta-box-glow {
  position: absolute;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.1;
}

.cta-box-glow.top-right {
  top: 0;
  right: 0;
  background-color: var(--kasam-gold);
  transform: translate(50%, -50%);
}

.cta-box-glow.bottom-left {
  bottom: 0;
  left: 0;
  background-color: var(--kasam-purple);
  transform: translate(-50%, 50%);
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .cta-title {
    font-size: 2.25rem;
  }
}

.cta-description {
  font-size: 1.125rem;
  color: var(--text-gray-400);
  max-width: 42rem;
  margin: 0 auto 2rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background-color: var(--bg-darker);
  border-top: 1px solid var(--border-gold);
}

.footer-main {
  padding: 4rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

.footer-logo {
  margin-bottom: 1.5rem;
}

.footer-logo img {
  height: 3.5rem;
  width: auto;
}

.footer-description {
  font-size: 0.875rem;
  color: var(--text-gray-400);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-contact a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-gray-400);
}

.footer-contact a:hover {
  color: var(--kasam-gold);
}

.footer-contact svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.footer-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 1.5rem;
}

.footer-title svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--kasam-gold);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-gray-400);
}

.footer-links a:hover {
  color: var(--kasam-gold);
}

.footer-bottom {
  border-top: 1px solid var(--border-gold);
  padding: 1.5rem 0;
}

.footer-bottom-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .footer-bottom-content {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-copyright {
  font-size: 0.875rem;
  color: var(--text-gray-500);
  text-align: center;
}

.footer-copyright a {
  color: var(--kasam-gold);
}

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

.footer-tagline {
  font-size: 0.75rem;
  color: var(--text-gray-600);
}

/* ============================================
   AI CHATBOT
   ============================================ */
.chatbot-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--kasam-gold);
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.chatbot-btn:hover {
  transform: scale(1.05);
}

.chatbot-btn svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--kasam-navy);
}

.chatbot-btn.active {
  background-color: #ef4444;
}

.chatbot-btn.active svg {
  color: var(--text-white);
}

.chatbot-indicator {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 0.75rem;
  height: 0.75rem;
  background-color: var(--kasam-purple);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.chatbot-window {
  display: none;
  position: fixed;
  bottom: 6rem;
  right: 1.5rem;
  z-index: 1000;
  width: 24rem;
  max-width: calc(100vw - 3rem);
  background-color: var(--kasam-navy-light);
  border: 1px solid rgba(255, 186, 47, 0.3);
  border-radius: var(--radius-2xl);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.chatbot-window.active {
  display: block;
  animation: fadeInUp 0.3s ease;
}

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

.chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: linear-gradient(90deg, var(--kasam-navy) 0%, var(--kasam-navy-light) 100%);
  border-bottom: 1px solid var(--border-gold);
}

.chatbot-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chatbot-avatar {
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--kasam-gold);
  border-radius: 50%;
}

.chatbot-avatar svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--kasam-navy);
}

.chatbot-status {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0.75rem;
  height: 0.75rem;
  background-color: #22c55e;
  border: 2px solid var(--kasam-navy-light);
  border-radius: 50%;
}

.chatbot-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-white);
}

.chatbot-features {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--text-gray-400);
}

.chatbot-features svg {
  width: 0.75rem;
  height: 0.75rem;
}

.chatbot-clear {
  padding: 0.25rem 0.5rem;
  background: none;
  border: none;
  color: var(--text-gray-400);
  font-size: 0.75rem;
  cursor: pointer;
}

.chatbot-clear:hover {
  color: #ef4444;
}

.chatbot-messages {
  height: 20rem;
  overflow-y: auto;
  padding: 1rem;
}

.chatbot-empty {
  text-align: center;
  padding: 2rem 0;
}

.chatbot-empty svg {
  width: 3rem;
  height: 3rem;
  color: var(--kasam-gold);
  margin-bottom: 1rem;
  opacity: 0.5;
}

.chatbot-empty p {
  font-size: 0.875rem;
  color: var(--text-gray-400);
}

.message {
  display: flex;
  margin-bottom: 1rem;
}

.message.user {
  justify-content: flex-end;
}

.message-bubble {
  max-width: 85%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-xl);
}

.message.user .message-bubble {
  background-color: var(--kasam-gold);
  color: var(--kasam-navy);
}

.message.assistant .message-bubble {
  background-color: var(--kasam-navy-lighter);
  color: var(--text-gray-100);
}

.message-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
  opacity: 0.7;
}

.message.user .message-meta {
  color: var(--kasam-navy);
}

.message.assistant .message-meta {
  color: var(--text-gray-400);
}

.message-text {
  font-size: 0.875rem;
  line-height: 1.5;
  white-space: pre-line;
}

.chatbot-typing {
  display: flex;
  justify-content: flex-start;
}

.typing-indicator {
  display: flex;
  gap: 0.25rem;
  padding: 0.75rem 1rem;
  background-color: var(--kasam-navy-lighter);
  border-radius: var(--radius-xl);
}

.typing-indicator span {
  width: 0.5rem;
  height: 0.5rem;
  background-color: var(--kasam-gold);
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) {
  animation-delay: 0s;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes bounce {
  0%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-0.5rem);
  }
}

.chatbot-input {
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
  background-color: var(--kasam-navy);
  border-top: 1px solid var(--border-gold);
}

.chatbot-input input {
  flex: 1;
  padding: 0.625rem 1rem;
  background-color: var(--kasam-navy-lighter);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  color: var(--text-white);
  font-size: 0.875rem;
}

.chatbot-input input::placeholder {
  color: var(--text-gray-500);
}

.chatbot-input input:focus {
  outline: none;
  border-color: var(--kasam-gold);
}

.chatbot-input button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--kasam-gold);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
}

.chatbot-input button:hover {
  background-color: rgba(255, 186, 47, 0.9);
}

.chatbot-input button svg {
  width: 1rem;
  height: 1rem;
  color: var(--kasam-navy);
}

.chatbot-footer {
  padding: 0.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-gray-500);
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-white);
  margin-bottom: 0.5rem;
}

.form-label .required {
  color: #ef4444;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--kasam-navy);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  color: var(--text-white);
  font-size: 0.875rem;
  transition: border-color var(--transition-normal);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--kasam-gold);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-gray-500);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   BADGES
   ============================================ */
.badge-small {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  background-color: rgba(255, 186, 47, 0.1);
  border: 1px solid var(--border-gold);
  border-radius: 9999px;
  color: var(--kasam-gold);
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-outline {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  color: var(--kasam-gold);
  font-size: 0.75rem;
}

/* ============================================
   TABS
   ============================================ */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.5rem;
  background-color: var(--kasam-navy-light);
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
}

.tab-btn {
  padding: 0.5rem 1rem;
  background: none;
  border: none;
  border-radius: var(--radius-md);
  color: var(--text-gray-400);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.tab-btn:hover {
  color: var(--text-white);
}

.tab-btn.active {
  background-color: var(--kasam-gold);
  color: var(--kasam-navy);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--kasam-navy);
}

::-webkit-scrollbar-thumb {
  background: var(--kasam-navy-lighter);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--kasam-gold);
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */
@media (min-width: 640px) {
  .sm\:flex-row {
    flex-direction: row;
  }
  
  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .md\:grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .md\:p-16 {
    padding: 4rem;
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .lg\:grid-cols-5 {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .lg\:col-span-2 {
    grid-column: span 2;
  }
  
  .lg\:order-1 {
    order: 1;
  }
  
  .lg\:order-2 {
    order: 2;
  }
}
