:root {
  --primary: #3a86ff;
  --primary-dark: #2667cc;
  --secondary: #2667cc;
  --dark: #121212;
  --darker: #0a0a0a;
  --light: #f5f5f7;
  --gray: #86868b;
  --card-bg: #1d1d1f;
  --success: #2ecc71;
  --whatsapp: #25D366;
  --gradient-1: linear-gradient(45deg, #3a86ff, #00b4d8);
  --gradient-2: linear-gradient(45deg, #2667cc, #2667cc);
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 15px 25px rgba(0, 0, 0, 0.15);
  --border-radius: 12px;
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--dark);
  color: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  background: var(--gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-align: center;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 1.5rem;
}

h3 {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
}

.section-title {
  text-align: center;
  position: relative;
  margin-bottom: 3rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

/* Layout */
header, section, footer {
  padding: 3rem 1.5rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Header */
header {
  background-color: var(--darker);
  padding: 3rem 1.5rem 1.5rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}

header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(58, 134, 255, 0.1);
  z-index: 0;
}

.header-title-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 1rem;
}

.company-logo {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
  object-fit: contain;
  border-radius: 50%;
}

.subtitle {
  text-align: center;
  color: var(--gray);
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 700px;
  margin: 0 auto 2rem;
}

.header-actions {
  margin-top: 2rem;
  position: relative;
  z-index: 5;
}

/* WhatsApp Button */
.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--whatsapp);
  color: white;
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn i {
  font-size: 1.2rem;
  margin-right: 0.8rem;
}

.whatsapp-btn-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--whatsapp);
  color: white;
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  font-weight: 500;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.2);
}

.whatsapp-btn-small:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn-small i {
    margin-right: 0.5rem;
}

/* Navigation */
.main-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.main-nav ul {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-grow: 1;
}

.main-nav a {
  font-weight: 500;
  transition: var(--transition-fast);
  position: relative;
  padding: 0.5rem 0;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition-medium);
}

.main-nav a:hover {
  color: var(--primary);
}

.main-nav a:hover::after {
  width: 100%;
}

/* Menu Toggle for Mobile */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 101;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--light);
  border-radius: 3px;
  transition: var(--transition-medium);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Main Content */
main {
  flex: 1;
}

section {
  padding: 5rem 1.5rem;
}

/* Cards Grid (for Projects) */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  justify-items: center;
  align-items: stretch;
}

/* Carousel Containers - General Styling */
.services-carousel-container,
.products-carousel-container {
    overflow: hidden;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.services-carousel,
.products-carousel {
    display: flex;
    gap: 2rem;
    padding-bottom: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    justify-content: flex-start;
    align-items: stretch;
    padding-left: 80px; /* Increased padding for centering room */
    padding-right: 80px;
    scroll-padding: 0 80px; /* Matches padding to center snap point */
    touch-action: pan-y; /* Allows vertical scrolling */
}

.services-carousel::-webkit-scrollbar,
.products-carousel::-webkit-scrollbar {
    display: none;
}

/* Service Card Specific */
.service-card {
    width: 300px;
    flex-shrink: 0;
    height: auto;
    scroll-snap-align: center; /* Snap to center */
    display: flex;
    flex-direction: column;
    text-align: center;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition-medium);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.service-card .card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.service-card .card-text {
    margin-bottom: 0;
    text-align: center;
    flex-grow: 1;
}

.card-title-highlight {
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}


/* Product Cards Specific */
.product-card {
    width: 300px;
    flex-shrink: 0;
    height: auto;
    scroll-snap-align: center; /* Snap to center */
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition-medium);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.product-card .card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-grow: 1;
}

.product-card .card-text {
    margin-bottom: 1.5rem;
    flex-grow: 1;
}


/* Project Cards (General Card Styles) */
.card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-medium);
  position: relative;
  height: auto;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.preview-container {
  position: relative;
  height: 180px;
  overflow: hidden;
  background-color: var(--darker);
  cursor: pointer;
}

/* Site Preview Images */
.site-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.3s ease;
}

.loaded .site-thumbnail {
  opacity: 1;
}

.card:hover .site-thumbnail {
  transform: scale(1.05);
}

.preview-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 70%,
    rgba(29, 29, 31, 1) 100%
  );
  z-index: 1;
}

.card-body {
  padding: 1.5rem;
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: var(--light);
  font-weight: 600;
}

.card-text {
  color: var(--gray);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
  flex: 1;
}

/* Buttons */
.btn {
  display: inline-block;
  background-color: var(--primary);
  color: white;
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  text-align: center;
  transition: all 0.2s ease;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  margin-top: auto;
}

.btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(58, 134, 255, 0.3);
}

/* Carousel Navigation Buttons - General Styling */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(29, 29, 31, 0.7);
  color: var(--light);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-fast);
}

.carousel-btn.prev-btn {
  left: 10px;
}

.carousel-btn.next-btn {
  right: 10px;
}


/* Testimonial Carousel */
.testimonial-carousel-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonial-carousel {
  display: flex;
  scroll-snap-type: x mandatory;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  gap: 20px;
  padding: 20px 0;
  align-items: stretch;
  touch-action: pan-y;
  padding-left: 40px;
  padding-right: 40px;
  scroll-padding: 0 40px;
}

.testimonial-carousel::-webkit-scrollbar {
  display: none;
}

.client-slide {
  flex: 0 0 calc(100% - 40px);
  max-width: 400px;
  scroll-snap-align: center;
  background: rgba(29, 29, 31, 0.5);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-medium);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .client-slide {
    flex: 0 0 calc(50% - 20px);
  }
}

@media (min-width: 1200px) {
  .client-slide {
    flex: 0 0 calc(33.333% - 20px);
  }
}

.client-slide:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}


.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--gray);
  cursor: pointer;
  transition: var(--transition-fast);
}

.dot.active {
  background-color: var(--primary);
  transform: scale(1.2);
}

.client-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  padding: 1rem;
  background: var(--darker);
}

.testimonial {
  font-style: italic;
  color: var(--gray);
  position: relative;
  padding: 0 1rem;
  flex-grow: 1;
}

.testimonial::before,
.testimonial::after {
  content: '"';
  font-size: 1.5rem;
  color: var(--primary);
  position: absolute;
}

.testimonial::before {
  top: -5px;
  left: 0;
}

.testimonial::after {
  bottom: -15px;
  right: 0;
}

/* Footer */
footer {
  background-color: var(--darker);
  padding: 4rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

footer h2 {
  margin-bottom: 2rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem 0;
}

.footer-links a {
  font-size: 1.5rem;
  color: var(--gray);
  transition: var(--transition-fast);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.1);
}

.copyright {
  color: var(--gray);
  font-size: 0.9rem;
  margin-top: 2rem;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

/* Cards are visible by default now */
.fade-in {
  opacity: 1;
  transform: none;
}

.animated {
  animation: none;
}

/* GAMER GIF specific styling */
img[src*="client-gamer.gif"] {
  object-fit: cover;
  object-position: 45% 49%;
  width: 90px;
  height: 90px;
  padding: 0;
  border-radius: 50%;
  background-color: var(--darker);
  overflow: hidden;
  margin: 5px auto;
  clip-path: circle(42px at center);
}

.client-logo[src*="client-gamer.gif"] {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive */
@media (max-width: 992px) {
  section {
    padding: 4rem 1.5rem;
  }
  
  .client-slide {
    min-width: 280px;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  
  .main-nav {
    padding: 0;
    justify-content: space-between;
  }
  
  .main-nav ul {
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: var(--card-bg);
    padding: 5rem 2rem 2rem;
    transition: var(--transition-medium);
    box-shadow: var(--shadow-lg);
    z-index: 100;
  }
  
  .main-nav.mobile-active ul {
    right: 0;
  }
  
  .main-nav a {
    display: block;
    padding: 1rem 0;
    font-size: 1.1rem;
  }
  
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
  }

  /* Carousel on mobile */
  .services-carousel-container,
  .products-carousel-container {
      max-width: 100%;
      padding: 0;
  }

  .services-carousel,
  .products-carousel {
      justify-content: flex-start;
      padding: 0 40px; /* Side space for mobile cards */
      gap: 1.5rem;
      scroll-padding: 0 40px;
  }

  .service-card,
  .product-card {
      flex: 0 0 calc(100% - 2rem);
      margin: 0;
      scroll-snap-align: center;
  }
  
  section {
    padding: 3rem 1rem;
  }
  
  .client-slide {
    padding: 1.5rem;
  }
  
  .whatsapp-btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .header-actions {
    margin-top: 1.5rem;
  }
  
  .carousel-btn {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 480px) {
  .grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }
  
  .preview-container {
    height: 160px;
  }
  
  .client-slide {
    min-width: unset;
    width: 100%;
  }
  
  section {
    padding: 2.5rem 1rem;
  }
  
  .whatsapp-btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .header-actions {
    margin-top: 1.5rem;
  }
  
  .carousel-btn {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }
}

/* Dark mode optimization */
@media (prefers-color-scheme: dark) {
  :root {
    --light: #f5f5f7;
  }
}

/* Hide default scrollbars for carousels */
.services-carousel::-webkit-scrollbar,
.products-carousel::-webkit-scrollbar,
.testimonial-carousel::-webkit-scrollbar {
    display: none;
}

.services-carousel,
.products-carousel,
.testimonial-carousel {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Custom Scrollbar Styles */
body {
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--darker);
}

html {
  overflow-y: scroll;
}

html::-webkit-scrollbar {
  width: 12px;
  background-color: var(--darker);
}

html::-webkit-scrollbar-track {
  background: var(--darker);
  border-radius: 6px;
}

html::-webkit-scrollbar-thumb {
  background-color: var(--primary);
  border-radius: 6px;
  border: 3px solid var(--darker);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

html::-webkit-scrollbar-thumb:hover {
  background-color: var(--secondary);
  transform: scaleY(1.05);
}

html::-webkit-scrollbar-thumb:active {
  animation: scrollThumbPress 0.2s ease forwards;
}

@keyframes scrollThumbPress {
  from {
    background-color: var(--secondary);
    transform: scaleY(1.05);
  }
  to {
    background-color: var(--primary-dark);
    transform: scaleY(0.95);
  }
}

@media (max-width: 768px) {
  html::-webkit-scrollbar {
    width: 8px;
  }
  html::-webkit-scrollbar-thumb {
    border: 2px solid var(--darker);
  }
}

/* AI Button Container */
.ai-button-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

/* AI Chat Button */
.ai-chat-button {
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(58, 134, 255, 0.4);
    transition: all 0.3s ease;
}

.ai-chat-button:hover {
    background-color: var(--primary-dark);
    transform: scale(1.08);
    box-shadow: 0 12px 20px rgba(58, 134, 255, 0.5);
}

.ai-chat-button:active {
    transform: scale(0.98);
    box-shadow: 0 4px 8px rgba(58, 134, 255, 0.3);
}

@media (max-width: 768px) {
    .ai-button-container {
        bottom: 20px;
        right: 20px;
    }

    .ai-chat-button {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

/* AI Chat Overlay */
.ai-chat-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ai-chat-overlay.active {
    opacity: 1;
    visibility: visible;
}

.ai-chat-window {
    background-color: var(--darker);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    width: 90%;
    max-width: 600px;
    height: 90%;
    max-height: 800px;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.ai-chat-overlay.active .ai-chat-window {
    transform: scale(1);
}

.ai-chat-header {
    background-color: var(--card-bg);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.ai-chat-header h3 {
    margin: 0;
    color: var(--light);
    font-size: 1.2rem;
}

.ai-chat-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-chat-whatsapp-button {
    background-color: var(--whatsapp);
    color: white;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
}

.ai-chat-whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

.ai-chat-close-button {
    background: none;
    border: none;
    color: var(--gray);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.ai-chat-close-button:hover {
    color: var(--secondary);
}

.ai-disclaimer {
    font-size: 0.75rem;
    color: var(--gray);
    text-align: center;
    padding: 0.5rem 1.5rem;
    background-color: rgba(29, 29, 31, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 999;
}


.ai-chat-messages {
    flex-grow: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--darker);
}

.ai-chat-messages::-webkit-scrollbar {
    width: 8px;
}

.ai-chat-messages::-webkit-scrollbar-track {
    background: var(--darker);
    border-radius: 4px;
}

.ai-chat-messages::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 4px;
    border: 2px solid var(--darker);
}

.ai-message {
    max-width: 80%;
    padding: 0.8rem 1.2rem;
    border-radius: 18px;
    line-height: 1.4;
    word-wrap: break-word;
}

.ai-message-user {
    background-color: var(--primary);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.ai-message-ai {
    background-color: var(--card-bg);
    color: var(--light);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.ai-typing-indicator {
    background-color: var(--card-bg);
    color: var(--gray);
    font-style: italic;
    align-self: flex-start;
    animation: pulse 1.5s infinite ease-in-out;
}

.ai-chat-input-container {
    display: flex;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    gap: 10px;
}

.ai-chat-input-container input {
    flex-grow: 1;
    padding: 0.8rem 1rem;
    border: 1px solid var(--gray);
    border-radius: 25px;
    background-color: var(--dark);
    color: var(--light);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.ai-chat-input-container input:focus {
    border-color: var(--primary);
}

.ai-chat-send-button {
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.ai-chat-send-button:hover {
    background-color: var(--primary-dark);
    transform: scale(1.05);
}

.ai-chat-send-button:active {
    transform: scale(0.95);
}

.whatsapp-button-wrapper {
    align-self: flex-start;
    margin-top: 10px;
}

.whatsapp-chat-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--whatsapp);
    color: white;
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.2);
}

.whatsapp-chat-button i {
    margin-right: 0.5rem;
}

.whatsapp-chat-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

@media (max-width: 768px) {
    .ai-chat-whatsapp-button {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
}

/* Ensure buttons are side-by-side with spacing */
.header-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 2rem;
    position: relative;
    z-index: 5;
}

/* Ham-Store Button Styling */
.ham-store-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-1); /* Uses your blue theme gradient */
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(58, 134, 255, 0.3);
    border: none;
}

.ham-store-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(58, 134, 255, 0.4);
    filter: brightness(1.1);
}

.ham-store-btn i {
    font-size: 1.2rem;
    margin-right: 0.8rem;
}

/* Mobile adjustment */
@media (max-width: 480px) {
    .ham-store-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}
