/* ============================================
   e-world Hub — Main CSS
   Glassmorphism + Dark Tech Futuristic
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  /* Core colors */
  --bg-primary: #05050A;
  --bg-secondary: #0A0A12;
  --bg-tertiary: #0F0F1A;
  --bg-card: rgba(15, 15, 30, 0.6);

  /* Brand */
  --purple: #7C3AED;
  --purple-light: #A78BFA;
  --purple-dark: #5B21B6;
  --neon-green: #06FFA5;
  --neon-cyan: #00D4FF;
  --neon-pink: #FF006E;

  /* Gradient */
  --gradient-primary: linear-gradient(135deg, #7C3AED, #06FFA5);
  --gradient-purple: linear-gradient(135deg, #7C3AED, #A78BFA);
  --gradient-neon: linear-gradient(135deg, #06FFA5, #00D4FF);
  --gradient-hero: radial-gradient(ellipse at 30% 20%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
                   radial-gradient(ellipse at 70% 80%, rgba(6, 255, 165, 0.08) 0%, transparent 50%);

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-bg-hover: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(124, 58, 237, 0.3);
  --glass-blur: blur(20px);
  --glass-blur-heavy: blur(40px);

  /* Text */
  --text-primary: #F0F0F5;
  --text-secondary: #9CA3AF;
  --text-muted: #6B7280;
  --text-accent: #A78BFA;

  /* App colors */
  --color-cv: #3B82F6;
  --color-calories: #10B981;
  --color-email: #F59E0B;
  --color-posts: #EC4899;
  --color-flash: #8B5CF6;
  --color-creator: #FF0000;

  /* Spacing */
  --section-padding: 120px 0;
  --container-width: 1200px;
  --border-radius: 16px;
  --border-radius-sm: 10px;
  --border-radius-lg: 24px;
  --border-radius-xl: 32px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-medium: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Persistent gradient orbs in background */
body::before,
body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

body::before {
  width: 600px;
  height: 600px;
  background: rgba(124, 58, 237, 0.08);
  top: -200px;
  left: -200px;
}

body::after {
  width: 500px;
  height: 500px;
  background: rgba(6, 255, 165, 0.05);
  bottom: -200px;
  right: -200px;
}

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

a:hover {
  color: var(--neon-green);
}

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

ul, ol {
  list-style: none;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--text-primary);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-neon {
  color: var(--neon-green);
  text-shadow: 0 0 20px rgba(6, 255, 165, 0.3);
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.section {
  padding: var(--section-padding);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header p {
  margin-top: 16px;
  font-size: 1.1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

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

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

/* ---------- Glassmorphism Card ---------- */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 32px;
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.glass-card:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(124, 58, 237, 0.1),
              0 0 40px rgba(124, 58, 237, 0.05);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .section-header { margin-bottom: 40px; }
  .container { padding: 0 16px; }
}

@media (max-width: 480px) {
  .section { padding: 60px 0; }
  .glass-card { padding: 24px; }
}

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

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

::-webkit-scrollbar-thumb {
  background: rgba(124, 58, 237, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(124, 58, 237, 0.5);
}

/* ---------- Selection ---------- */
::selection {
  background: rgba(124, 58, 237, 0.3);
  color: var(--text-primary);
}
