/* ============================================
   BBM ATTORNEY AT LAW - PREMIUM DARK THEME
   ============================================ */

:root {
  /* Color Palette */
  --dark-charcoal: #1A1A1D;
  --deep-slate: #222326;
  --mid-grey: #2B2C30;
  --marble-white: #F3F3F3;
  --luxury-gold: #C5A253;
  --soft-silver: #C3C3C4;
  --gold-light: #D4B868;
  --gold-dark: #B8943F;
  
  /* Spacing */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 32px;
  --spacing-lg: 64px;
  --spacing-xl: 80px;
  --spacing-xxl: 120px;
  
  /* Shadows & Glows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --gold-glow: 0 0 20px rgba(197, 162, 83, 0.4);
  --gold-glow-strong: 0 0 30px rgba(197, 162, 83, 0.6);
  
  /* Borders */
  --border-radius: 10px;
  --border-radius-lg: 14px;
  --border-gold: 2px solid var(--luxury-gold);
  
  /* Typography */
  --font-serif: 'Georgia', 'Times New Roman', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: linear-gradient(180deg, #1A1A1D 0%, #111112 100%);
  color: var(--marble-white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ============================================
   IMAGE OPTIMIZATION
   ============================================ */

img {
  max-width: 100%;
  height: auto;
  display: block;
  /* Image optimization */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  /* Performance */
  will-change: auto;
  /* Prevent layout shift */
}

img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* SVG optimization */
svg {
  max-width: 100%;
  height: auto;
  display: block;
  /* SVG rendering optimization */
  shape-rendering: geometricPrecision;
  text-rendering: geometricPrecision;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--marble-white);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.2;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  color: var(--soft-silver);
  margin-bottom: var(--spacing-sm);
}

a {
  color: var(--luxury-gold);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--gold-light);
  text-shadow: var(--gold-glow);
}

/* ============================================
   LAYOUT & CONTAINERS
   ============================================ */

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-xl) 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--spacing-md);
}

.grid-3 {
  grid-column: span 3;
}

.grid-4 {
  grid-column: span 4;
}

.grid-6 {
  grid-column: span 6;
}

.grid-8 {
  grid-column: span 8;
}

.grid-12 {
  grid-column: span 12;
}

/* ============================================
   CARDS & SECTIONS
   ============================================ */

.card {
  background: var(--deep-slate);
  border-left: 4px solid var(--luxury-gold);
  padding: var(--spacing-md);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  /* Performance optimizations */
  will-change: transform;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  /* Ensure cards maintain height */
  min-height: fit-content;
  display: flex;
  flex-direction: column;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--luxury-gold), var(--gold-dark));
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg), var(--gold-glow);
}

.card:hover::before {
  transform: scaleY(1);
}

.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--spacing-sm);
  fill: var(--luxury-gold);
  flex-shrink: 0;
  display: block;
  /* Optimize SVG rendering */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  transform: translateZ(0);
}

.card-title {
  color: var(--marble-white);
  font-size: 1.5rem;
  margin-bottom: var(--spacing-xs);
}

.card-text {
  color: var(--soft-silver);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.header {
  background: rgba(26, 26, 29, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(197, 162, 83, 0.2);
  box-shadow: var(--shadow-sm);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm) var(--spacing-md);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.logo img {
  height: 50px;
  width: auto;
  max-width: 100%;
  /* Optimize SVG rendering */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  /* Prevent layout shift */
  display: block;
}

.nav {
  display: flex;
  list-style: none;
  gap: var(--spacing-md);
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--soft-silver);
  font-weight: 500;
  padding: var(--spacing-xs) var(--spacing-sm);
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: var(--luxury-gold);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--luxury-gold);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 80%;
}

/* Mega Menu */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--deep-slate);
  min-width: 600px;
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 999;
}

.nav-item:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
}

.mega-menu-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm);
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
}

.mega-menu-item:hover {
  background: var(--mid-grey);
  transform: translateX(5px);
}

.mega-menu-icon {
  width: 24px;
  height: 24px;
  fill: var(--luxury-gold);
  flex-shrink: 0;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-block;
  padding: 12px 32px;
  border: 2px solid var(--luxury-gold);
  background: transparent;
  color: var(--luxury-gold);
  font-weight: 600;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: var(--luxury-gold);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  z-index: -1;
}

.btn:hover {
  color: var(--dark-charcoal);
  box-shadow: var(--gold-glow-strong);
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--luxury-gold);
  color: var(--dark-charcoal);
}

.btn-primary:hover {
  background: var(--gold-light);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(26, 26, 29, 0.9), rgba(34, 35, 38, 0.9));
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../img/hero.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  z-index: 1;
  will-change: transform;
  /* Optimize image rendering */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  transform: translateZ(0);
  /* Fallback for older browsers */
  min-height: 100%;
  min-width: 100%;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(26, 26, 29, 0.85) 0%, rgba(17, 17, 18, 0.75) 100%);
  z-index: 2;
  /* Ensure overlay covers entire hero */
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 5rem);
  margin-bottom: var(--spacing-md);
  background: linear-gradient(135deg, var(--marble-white), var(--luxury-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--soft-silver);
  margin-bottom: var(--spacing-lg);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  max-width: 700px;
}

/* About Page Hero Background */
.about-hero-bg {
  background-image: url('../img/about.png');
}

/* About Page Image Container */
.about-image-container {
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  position: relative;
  margin-bottom: var(--spacing-md);
  box-shadow: var(--shadow-lg);
  border: 2px solid rgba(197, 162, 83, 0.3);
}

.about-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.5s ease;
  display: block;
  /* Image optimization */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  /* Performance */
  will-change: transform;
  backface-visibility: hidden;
  /* Lazy loading support */
  loading: lazy;
}

.about-image-container:hover .about-image {
  transform: scale(1.05);
}

/* ============================================
   FLOATING WIDGETS
   ============================================ */

/* Widget 1: Legal FAQ Assistant */
.floating-faq {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 380px;
  max-height: 600px;
  background: var(--deep-slate);
  border: 2px solid var(--luxury-gold);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg), var(--gold-glow);
  z-index: 9999;
  display: none;
  flex-direction: column;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease;
}

.floating-faq.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}

.faq-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: var(--luxury-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--gold-glow-strong);
  z-index: 10000;
  transition: all 0.3s ease;
}

.faq-toggle:hover {
  transform: scale(1.1);
  box-shadow: var(--gold-glow-strong), 0 0 40px rgba(197, 162, 83, 0.8);
}

.faq-toggle svg {
  width: 28px;
  height: 28px;
  fill: var(--dark-charcoal);
}

.faq-header {
  padding: var(--spacing-md);
  border-bottom: 1px solid rgba(197, 162, 83, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-body {
  padding: var(--spacing-md);
  overflow-y: auto;
  flex: 1;
}

.faq-item {
  margin-bottom: var(--spacing-sm);
  padding: var(--spacing-sm);
  border-left: 3px solid var(--luxury-gold);
  background: var(--mid-grey);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-item:hover {
  background: var(--mid-grey);
  transform: translateX(5px);
}

.faq-question {
  font-weight: 600;
  color: var(--luxury-gold);
  margin-bottom: var(--spacing-xs);
}

.faq-answer {
  color: var(--soft-silver);
  font-size: 0.9rem;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* Widget 2: Book Consultation CTA */
.floating-consultation {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, var(--luxury-gold), var(--gold-dark));
  padding: var(--spacing-md);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--gold-glow-strong);
  z-index: 9998;
  animation: pulse-gold 2s infinite;
  max-width: 200px;
}

@keyframes pulse-gold {
  0%, 100% {
    box-shadow: var(--gold-glow-strong);
  }
  50% {
    box-shadow: var(--gold-glow-strong), 0 0 50px rgba(197, 162, 83, 0.8);
  }
}

.floating-consultation h3 {
  color: var(--dark-charcoal);
  font-size: 1.2rem;
  margin-bottom: var(--spacing-xs);
}

.floating-consultation p {
  color: var(--dark-charcoal);
  font-size: 0.9rem;
  margin-bottom: var(--spacing-sm);
}

/* Widget 3: Document Upload Dropzone */
.floating-upload {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 350px;
  background: var(--deep-slate);
  border: 2px dashed var(--luxury-gold);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-lg);
  z-index: 9997;
  display: none;
}

.floating-upload.show {
  display: block;
  animation: slideInUp 0.4s ease;
}

@keyframes slideInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.upload-zone {
  border: 2px dashed var(--luxury-gold);
  border-radius: var(--border-radius);
  padding: var(--spacing-lg);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.upload-zone:hover,
.upload-zone.dragover {
  background: rgba(197, 162, 83, 0.1);
  border-color: var(--gold-light);
}

.upload-progress {
  margin-top: var(--spacing-sm);
  height: 6px;
  background: var(--mid-grey);
  border-radius: 3px;
  overflow: hidden;
  display: none;
}

.upload-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--luxury-gold), var(--gold-light));
  width: 0%;
  transition: width 0.3s ease;
}

/* Widget 4: Bottom Bar Quick Actions */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--deep-slate);
  border-top: 2px solid var(--luxury-gold);
  padding: var(--spacing-sm) 0;
  display: flex;
  justify-content: center;
  gap: var(--spacing-lg);
  z-index: 9996;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.4);
}

.bottom-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: var(--spacing-xs);
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  position: relative;
}

.bottom-bar-item:hover {
  background: var(--mid-grey);
  transform: translateY(-3px);
}

.bottom-bar-icon {
  width: 32px;
  height: 32px;
  fill: var(--luxury-gold);
}

.bottom-bar-label {
  font-size: 0.75rem;
  color: var(--soft-silver);
}

.bottom-bar-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark-charcoal);
  color: var(--marble-white);
  padding: 6px 12px;
  border-radius: var(--border-radius);
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  margin-bottom: 8px;
  border: 1px solid var(--luxury-gold);
}

.bottom-bar-item:hover .bottom-bar-tooltip {
  opacity: 1;
}

/* ============================================
   FORMS
   ============================================ */

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-label {
  display: block;
  color: var(--luxury-gold);
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px var(--spacing-sm);
  background: var(--mid-grey);
  border: 1px solid rgba(197, 162, 83, 0.3);
  border-radius: var(--border-radius);
  color: var(--marble-white);
  font-family: var(--font-sans);
  transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--luxury-gold);
  box-shadow: 0 0 0 3px rgba(197, 162, 83, 0.2);
}

.form-input.error,
.form-textarea.error,
.form-select.error {
  border-color: #ff4444;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* ============================================
   TABLES
   ============================================ */

.table-container {
  overflow-x: auto;
  margin: var(--spacing-md) 0;
  -webkit-overflow-scrolling: touch;
  /* Optimize scrolling */
  scrollbar-width: thin;
  scrollbar-color: var(--luxury-gold) var(--deep-slate);
}

.table-container::-webkit-scrollbar {
  height: 8px;
}

.table-container::-webkit-scrollbar-track {
  background: var(--deep-slate);
  border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb {
  background: var(--luxury-gold);
  border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb:hover {
  background: var(--gold-light);
}

.table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  background: var(--deep-slate);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  /* Performance optimization */
  table-layout: auto;
}

.table th {
  background: var(--mid-grey);
  color: var(--luxury-gold);
  padding: var(--spacing-sm) var(--spacing-md);
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 2px solid var(--luxury-gold);
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 1;
}

.table td {
  padding: var(--spacing-sm) var(--spacing-md);
  color: var(--soft-silver);
  border-bottom: 1px solid rgba(197, 162, 83, 0.2);
  font-size: 0.9rem;
  line-height: 1.6;
  vertical-align: middle;
}

.table tbody tr {
  transition: background-color 0.2s ease;
}

.table tbody tr:hover {
  background: var(--mid-grey);
  transform: scale(1.01);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

/* ============================================
   TOOLTIPS
   ============================================ */

.legal-term {
  border-bottom: 1px dotted var(--luxury-gold);
  cursor: help;
  position: relative;
}

.legal-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark-charcoal);
  color: var(--marble-white);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--border-radius);
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  margin-bottom: 8px;
  border: 1px solid var(--luxury-gold);
  max-width: 300px;
  white-space: normal;
  z-index: 10001;
}

.legal-term:hover .legal-tooltip {
  opacity: 1;
}

/* ============================================
   BOOKING WIZARD
   ============================================ */

.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

.wizard-progress-bar {
  transition: width 0.4s ease;
}

/* ============================================
   CASE PROGRESS TIMELINE
   ============================================ */

.timeline {
  position: relative;
  padding: var(--spacing-lg) 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--luxury-gold);
}

.timeline-item {
  position: relative;
  padding-left: 80px;
  margin-bottom: var(--spacing-lg);
}

.timeline-dot {
  position: absolute;
  left: 18px;
  top: 0;
  width: 24px;
  height: 24px;
  background: var(--luxury-gold);
  border-radius: 50%;
  box-shadow: var(--gold-glow);
  cursor: pointer;
  transition: all 0.3s ease;
}

.timeline-dot:hover {
  transform: scale(1.3);
  box-shadow: var(--gold-glow-strong);
}

.timeline-content {
  background: var(--deep-slate);
  padding: var(--spacing-md);
  border-radius: var(--border-radius-lg);
  border-left: 3px solid var(--luxury-gold);
}

/* ============================================
   CAROUSEL
   ============================================ */

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-item {
  min-width: 100%;
  padding: var(--spacing-md);
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(26, 26, 29, 0.8);
  border: 2px solid var(--luxury-gold);
  color: var(--luxury-gold);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.carousel-nav:hover {
  background: var(--luxury-gold);
  color: var(--dark-charcoal);
}

.carousel-nav.prev {
  left: 20px;
}

.carousel-nav.next {
  right: 20px;
}

/* ============================================
   AI LEGAL SUGGESTOR
   ============================================ */

.ai-suggestor {
  background: var(--deep-slate);
  padding: var(--spacing-md);
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(197, 162, 83, 0.3);
}

.ai-suggestor-input {
  width: 100%;
  padding: var(--spacing-sm);
  background: var(--mid-grey);
  border: 1px solid var(--luxury-gold);
  border-radius: var(--border-radius);
  color: var(--marble-white);
  margin-bottom: var(--spacing-sm);
}

.ai-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
}

.ai-suggestion-tag {
  padding: 6px 12px;
  background: var(--mid-grey);
  border: 1px solid var(--luxury-gold);
  border-radius: 20px;
  color: var(--luxury-gold);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ai-suggestion-tag:hover {
  background: var(--luxury-gold);
  color: var(--dark-charcoal);
}

/* ============================================
   FILE MANAGER
   ============================================ */

.file-manager {
  background: var(--deep-slate);
  padding: var(--spacing-md);
  border-radius: var(--border-radius-lg);
}

.file-list {
  list-style: none;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-sm);
  background: var(--mid-grey);
  border-radius: var(--border-radius);
  margin-bottom: var(--spacing-xs);
}

.file-item:hover {
  background: var(--mid-grey);
}

.file-icon {
  width: 24px;
  height: 24px;
  fill: var(--luxury-gold);
  margin-right: var(--spacing-xs);
}

.file-actions {
  display: flex;
  gap: var(--spacing-xs);
}

.file-action-btn {
  background: transparent;
  border: 1px solid var(--luxury-gold);
  color: var(--luxury-gold);
  padding: 4px 12px;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.3s ease;
}

.file-action-btn:hover {
  background: var(--luxury-gold);
  color: var(--dark-charcoal);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

/* Parallax Effect */
.parallax {
  transform: translateZ(0);
  will-change: transform;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1200px) {
  .grid-3 {
    grid-column: span 4;
  }
  
  .grid-4 {
    grid-column: span 6;
  }
}

@media (max-width: 768px) {
  .grid-3,
  .grid-4,
  .grid-6 {
    grid-column: span 12;
  }
  
  .nav {
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--deep-slate);
    padding: var(--spacing-md);
    display: none;
  }
  
  .nav.active {
    display: flex;
  }
  
  .mega-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    min-width: auto;
    margin-top: var(--spacing-xs);
  }
  
  .floating-consultation {
    left: 10px;
    max-width: 150px;
    padding: var(--spacing-sm);
  }
  
  .floating-faq {
    width: calc(100% - 40px);
    right: 20px;
    left: 20px;
  }
  
  .floating-upload {
    width: calc(100% - 40px);
    right: 20px;
  }
  
  .bottom-bar {
    padding: var(--spacing-xs) 0;
    gap: var(--spacing-sm);
  }
  
  .bottom-bar-label {
    font-size: 0.65rem;
  }
  
  .table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .table {
    min-width: 500px;
    font-size: 0.85rem;
  }
  
  .table th,
  .table td {
    padding: 8px 12px;
  }
  
  .card {
    padding: var(--spacing-sm) var(--spacing-md);
  }
  
  .card-icon {
    width: 40px;
    height: 40px;
  }
  
  .card-title {
    font-size: 1.25rem;
  }
  
  .hero {
    min-height: 70vh;
  }
  
  .hero-background {
    background-attachment: scroll;
  }
  
  .about-image-container {
    height: 300px;
  }
  
  .section {
    padding: var(--spacing-md) 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--spacing-sm);
  }
  
  .about-image-container {
    height: 250px;
  }
  
  .table {
    min-width: 400px;
    font-size: 0.8rem;
  }
  
  .table th,
  .table td {
    padding: 6px 8px;
  }
  
  .card {
    padding: var(--spacing-xs) var(--spacing-sm);
  }
  
  .card-icon {
    width: 36px;
    height: 36px;
  }
  
  .card-title {
    font-size: 1.1rem;
  }
  
  .floating-consultation {
    display: none;
  }
  
  .bottom-bar-item {
    padding: 4px;
  }
}

/* ============================================
   UTILITIES
   ============================================ */

.text-center {
  text-align: center;
}

.text-gold {
  color: var(--luxury-gold);
}

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }

.hidden {
  display: none;
}

.visible {
  display: block;
}
