/* ========== CSS VARIABLES ========== */
:root {
  --bg-primary: #F9F9F6;
  --bg-secondary: #FFFFFF;
  --text-primary: #1E293B;
  --text-secondary: #475569;
  --accent: #FF6B35;
  --accent-dark: #E55A2B;
  --accent-light: #FF8A5C;
  --green: #10B981;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(30, 41, 59, 0.1);
  --neumo-shadow: 6px 6px 12px rgba(0,0,0,0.05), -6px -6px 12px rgba(255,255,255,0.8);
  --transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}
.dark-theme {
  --bg-primary: #121826;
  --bg-secondary: #1E293B;
  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --glass-bg: rgba(18, 24, 38, 0.85);
  --glass-border: rgba(255, 107, 53, 0.2);
  --neumo-shadow: 6px 6px 12px rgba(0,0,0,0.3), -6px -6px 12px rgba(255,255,255,0.05);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: var(--transition);
  line-height: 1.5;
  overflow-x: hidden;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

/* Typography */
h1, h2, h3, .logo span { font-family: 'Playfair Display', serif; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 1rem; }
.highlight { color: var(--accent); }

/* Top Banner */
.top-banner {
  background: var(--accent);
  color: white;
  text-align: center;
  padding: 0.6rem;
  font-size: 0.9rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}
.banner-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
}

/* Header & Mega Menu */
.glass-header {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo-link { text-decoration: none; color: inherit; }
.logo { display: flex; align-items: center; gap: 0.6rem; font-size: 1.6rem; font-weight: 700; }
.logo-icon { height: 40px; width: auto; border-radius: 50%; }
.desktop-nav ul { display: flex; gap: 1.5rem; list-style: none; align-items: center; }
.desktop-nav a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  transition: var(--transition);
}
.desktop-nav a:hover { color: var(--accent); }
.chevron { font-size: 0.7rem; margin-left: 0.2rem; }
.mega-dropdown { position: static; }
.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: 0.2s;
  border: 1px solid var(--glass-border);
  z-index: 200;
}
.mega-dropdown:hover .mega-menu { opacity: 1; visibility: visible; }
.mega-col { flex: 1; }
.mega-col h4 { margin-bottom: 0.5rem; color: var(--accent); }
.mega-col a { display: block; padding: 0.3rem 0; font-size: 0.9rem; }
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border-radius: 16px;
  padding: 0.5rem 0;
  min-width: 150px;
  opacity: 0;
  visibility: hidden;
  transition: 0.2s;
  list-style: none;
}
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; }
.dropdown-menu li a { display: block; padding: 0.4rem 1rem; }
.nav-actions { display: flex; gap: 1rem; align-items: center; }
.theme-btn, .mobile-toggle {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--text-primary);
}
.btn-primary {
  background: var(--accent);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 40px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: var(--transition);
}
.btn-primary:hover { background: var(--accent-dark); transform: scale(0.98); }
.btn-outline {
  background: transparent;
  border: 1px solid var(--accent);
  padding: 0.5rem 1rem;
  border-radius: 40px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: var(--transition);
}
.btn-outline:hover { background: var(--accent); color: white; transform: scale(0.98); }
.mobile-toggle { display: none; }
.mobile-nav {
  display: none;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  position: fixed;
  top: 80px;
  right: 0;
  width: 70%;
  border-radius: 20px;
  padding: 1rem;
  z-index: 99;
}
.mobile-nav ul { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.mobile-quote { display: block; background: var(--accent); color: white; text-align: center; border-radius: 40px; padding: 0.5rem; }

/* Hero Section with Dark Background */
.hero {
  position: relative;
  background: url('../assets/hero-bg.png') center/cover no-repeat;
  border-radius: 0 0 48px 48px;
  margin: 0;
  padding: 0;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}
.hero-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
  color: white;
}
.hero-text h1, .hero-text p { color: white; }
.hero-text .highlight { color: var(--accent-light); }
.hero-buttons .btn-outline { border-color: white; color: white; }
.hero-buttons .btn-outline:hover { background: white; color: var(--accent); }
.hero-stats { display: flex; gap: 2rem; margin-top: 2rem; }
.stat { background: rgba(255,255,255,0.15); backdrop-filter: blur(4px); padding: 0.5rem 1.2rem; border-radius: 40px; font-weight: 600; }
.stat span { font-weight: 700; font-size: 1.5rem; color: var(--accent-light); }

/* Bento Grid */
.services-bento { padding: 4rem 0; }
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.bento-card {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  border-radius: 28px;
  padding: 1.5rem;
  transition: var(--transition);
  border: 1px solid var(--glass-border);
}
.bento-card.large { grid-column: span 2; }
.bento-card.tall { grid-row: span 2; }
.bento-card:hover { transform: translateY(-6px); box-shadow: 0 20px 30px -10px rgba(0,0,0,0.15); }
.bento-card .icon { font-size: 2rem; margin-bottom: 0.5rem; display: block; }
.bento-card p { color: var(--text-secondary); }

/* Featured Demos (Flip Cards) */
.featured-demos { padding: 4rem 0; background: var(--bg-secondary); }
.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.flip-card {
  background: transparent;
  perspective: 1000px;
  height: 280px;
}
.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  border-radius: 28px;
}
.flip-card:hover .flip-inner { transform: rotateY(180deg); }
.flip-front, .flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 28px;
  padding: 1.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.flip-back { transform: rotateY(180deg); }
.flip-back .btn-primary { margin-top: 1rem; }

/* Footer */
.glass-footer {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--glass-border);
  margin-top: 3rem;
  padding: 2rem 0;
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding: 0 1rem;
}
.footer-col ul { list-style: none; }
.footer-col a { text-decoration: none; color: var(--text-secondary); transition: var(--transition); }
.footer-col a:hover { color: var(--accent); }
.social-icons { display: flex; gap: 1rem; margin-top: 0.5rem; }
.social-icons img { width: 24px; height: auto; transition: transform 0.2s; }
.social-icons img:hover { transform: scale(1.1); }
.footer-bottom { text-align: center; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--glass-border); }

/* Scroll Animations */
.scroll-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.scroll-fade.visible { opacity: 1; transform: translateY(0); }

/* Chatbot Styles */
.chatbot-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 30px;
  background: var(--accent);
  color: white;
  border: none;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  font-size: 1.8rem;
  transition: 0.2s;
}
.chatbot-button:hover { transform: scale(1.05); }
.chatbot-window {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 320px;
  height: 450px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  border: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  overflow: hidden;
}
.chatbot-header {
  background: var(--accent);
  padding: 0.8rem;
  color: white;
  display: flex;
  justify-content: space-between;
}
.chatbot-messages { flex: 1; overflow-y: auto; padding: 0.8rem; display: flex; flex-direction: column; gap: 0.5rem; }
.chatbot-message { padding: 0.5rem 0.8rem; border-radius: 20px; max-width: 85%; word-wrap: break-word; }
.user-message { background: var(--accent); color: white; align-self: flex-end; }
.bot-message { background: var(--bg-secondary); color: var(--text-primary); align-self: flex-start; border: 1px solid var(--glass-border); }
.chatbot-input-area { display: flex; padding: 0.5rem; border-top: 1px solid var(--glass-border); }
.chatbot-input { flex: 1; border: none; background: none; padding: 0.5rem; outline: none; }
.chatbot-send { background: var(--accent); border: none; color: white; padding: 0.3rem 0.8rem; border-radius: 20px; cursor: pointer; }

/* Responsive */
@media (max-width: 768px) {
  .desktop-nav { display: none; }
  .mobile-toggle { display: block; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card.large, .bento-card.tall { grid-column: span 1; grid-row: span 1; }
  .hero-container { padding: 2rem 1rem; text-align: center; }
  .hero-stats { justify-content: center; }
  .demo-grid { grid-template-columns: 1fr; }
  .chatbot-window { width: 280px; right: 10px; bottom: 80px; }
}