/**
 * Bixing Technology - Main Consolidated CSS
 *
 * This file contains core styles and variables used across the website.
 * It consolidates common elements from multiple CSS files to reduce HTTP requests.
 */

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

/* ===== Base Variables and Imports ===== */
:root {
  /* Primary Colors */
  --primary-dark: #0a1929;
  --primary-blue: #0e4377;
  --primary-light: #e6f1ff;
  
  /* Accent Colors */
  --accent-blue: #00a8ff;
  --accent-purple: #9c27b0;
  --accent-teal: #00bcd4;
  --gold: #FFD700;
  --gradient-gold: linear-gradient(to right, #FFD700, #FFA07A);
  
  /* Neutral Colors */
  --dark-bg: #121212;
  --dark-surface: #1e1e1e;
  --gray-light: #a0a0a0;
  --white: #fff;
  
  /* Functional Colors */
  --success: #4caf50;
  --warning: #ff9800;
  --error: #f44336;
  
  /* Typography */
  --font-primary: 'Poppins', sans-serif;
  --font-secondary: 'Space Grotesk', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  
  /* Border Radius */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgb(0 0 0 / 10%);
  --shadow-md: 0 4px 8px rgb(0 0 0 / 20%);
  --shadow-lg: 0 8px 16px rgb(0 0 0 / 30%);
  
  /* Card Gradients */
  --gradient-card-1: linear-gradient(135deg, #00a8ff, #00bcd4);
  --gradient-card-2: linear-gradient(135deg, #9c27b0, #673ab7);
  --gradient-card-3: linear-gradient(135deg, #f44336, #ff9800);
  --gradient-card-4: linear-gradient(135deg, #4caf50, #8bc34a);
  --gradient-card-5: linear-gradient(135deg, #3f51b5, #2196f3);
}

/* ===== Global Styles ===== */
html, body {
  background-color: var(--dark-bg);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Force document to be at least viewport height plus 1px to ensure scrollbar extends fully */
body::after {
  content: "";
  display: block;
  height: 1px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  color: var(--white);
}

p {
  margin-bottom: var(--spacing-md);
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-teal);
}

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

/* ===== Utility Classes ===== */
.section-padding {
  padding: var(--spacing-xl) 0;
}

.bg-gradient {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
}

.bg-light {
  background-color: var(--dark-surface);
  color: var(--white);
}

.text-gradient {
  background: var(--gradient-gold);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* ===== Layout Components ===== */
.content-wrapper {
  flex: 1;
}

main, .container-fluid, .container {
  flex-grow: 1;
}

/* ===== Section Styling ===== */
.section-header {
  margin-bottom: 2rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

/* ===== Tag Styling ===== */
.tag {
  display: inline-block;
  padding: 5px 10px;
  background: linear-gradient(135deg, rgb(0 168 255 / 20%), rgb(112 0 255 / 20%));
  border-radius: 20px;
  color: var(--white);
  font-size: 0.8rem;
  margin-right: 10px;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.tag:hover {
  background: linear-gradient(135deg, rgb(0 168 255 / 30%), rgb(112 0 255 / 30%));
  transform: translateY(-2px);
}

/* ===== Language Selector Styles ===== */
.language-selector {
  margin-left: 15px;
}

.language-selector button {
  background: linear-gradient(135deg, rgb(0 102 255 / 20%), rgb(112 0 255 / 20%));
  border: 1px solid rgb(255 255 255 / 10%);
  color: var(--white);
  padding: 5px 8px;
  border-radius: 20px;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.language-selector button:hover {
  background: linear-gradient(135deg, rgb(0 102 255 / 30%), rgb(112 0 255 / 30%));
  transform: translateY(-2px);
}

/* ===== Responsive Adjustments ===== */
@media (width <= 768px) {
  .section-title {
    font-size: 2rem;
  }
  
  .section-padding {
    padding: var(--spacing-lg) 0;
  }
}

@media (width <= 576px) {
  .section-title {
    font-size: 1.8rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
}
