/* 
  TheWebMaster - Base Design System & Stylesheet
  Focus: Modern, premium dark tech aesthetic (Obsidian Theme)
*/

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

:root {
  /* Color Palette */
  --bg-primary: #0a0b0d;         /* Midnight/Obsidian primary background */
  --bg-secondary: #121318;       /* Charcoal secondary background */
  --bg-card: rgba(255, 255, 255, 0.03); /* Translucent glass background */
  --border-card: rgba(255, 255, 255, 0.08); /* Soft white border */
  --border-glow: rgba(0, 242, 254, 0.15);  /* Cyber cyan glowing border */
  
  --text-primary: #ffffff;       /* Main heading and focus text */
  --text-secondary: #94a3b8;     /* Muted body text */
  --text-muted: #64748b;         /* Disabled/caption text */
  
  --accent-cyan: #00f2fe;        /* Electric cyan */
  --accent-purple: #9b5de5;      /* Tech violet */
  --accent-blue: #3b82f6;        /* Cool blue */
  
  /* Gradients */
  --grad-accent: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 100%);
  --grad-cyan-blue: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
  --grad-card: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  --grad-dark-glow: radial-gradient(circle at 50% -20%, rgba(155, 93, 229, 0.15) 0%, rgba(10, 11, 13, 0) 60%);

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing */
  --container-max-width: 1280px;
  --header-height: 80px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  
  /* Shadows */
  --shadow-glow: 0 0 30px rgba(0, 242, 254, 0.15);
  --shadow-purple-glow: 0 0 30px rgba(155, 93, 229, 0.15);
  --shadow-nav: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
}

/* Reset Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Subtle overall background glow */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1600px;
  height: 900px;
  background: var(--grad-dark-glow);
  z-index: -1;
  pointer-events: none;
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.01em;
}

p {
  color: var(--text-secondary);
  font-size: clamp(1rem, 2vw, 1.125rem);
}

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

/* Global Container */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Grid & Layout Utilities */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Scrollbar customization */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: #252836;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3a3f55;
}

/* Section styling */
section {
  padding: 8rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 5rem auto;
}

.section-header h2 {
  margin-bottom: 1.25rem;
}

.section-header p {
  color: var(--text-secondary);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(0, 242, 254, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 242, 254, 0.2);
  margin-bottom: 1.5rem;
}

.badge-purple {
  background: rgba(155, 93, 229, 0.1);
  color: var(--accent-purple);
  border: 1px solid rgba(155, 93, 229, 0.2);
}

/* Responsive spacing tweaks */
@media (max-width: 768px) {
  section {
    padding: 5rem 0;
  }
}

/* AI Promo Banner */
.ai-promo-banner {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 1000;
  max-width: 380px;
  background: rgba(10, 11, 13, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 242, 254, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 242, 254, 0.1);
  border-radius: 8px;
  padding: 1.25rem;
  color: #fff;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

html[dir="rtl"] .ai-promo-banner {
  left: auto;
  right: 2rem;
}

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

@media (max-width: 480px) {
  .ai-promo-banner {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: none;
  }
  html[dir="rtl"] .ai-promo-banner {
    left: 1rem;
    right: 1rem;
  }
}
