/* 
 * BESTVOIPTEL - Global Design System
 * Premium Enterprise Telecommunications Stylesheet
 */

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

:root {
  /* Typography */
  --font-primary: 'Poppins', sans-serif;
  --font-secondary: 'Inter', sans-serif;

  /* Colors - Light Theme (Default) */
  --primary: #0A84FF;
  --secondary: #0F172A;
  --accent: #00D4FF;
  --dark: #080E1A;
  --bg-light: #F8FAFC;
  --bg-dark: #080E1A;
  
  --bg-color: #F8FAFC;
  --card-bg: #FFFFFF;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --border-color: #E2E8F0;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #0A84FF 0%, #003366 100%);
  --gradient-accent: linear-gradient(135deg, #0A84FF 0%, #00D4FF 100%);
  --gradient-dark: linear-gradient(135deg, #080E1A 0%, #020617 100%);
  --gradient-glow: linear-gradient(90deg, #0A84FF, #00D4FF, #0A84FF);
  --gradient-geom: linear-gradient(135deg, #003366 0%, #0A84FF 50%, #00D4FF 100%);
  
  /* Glassmorphism & Shadows */
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 8px 32px 0 rgba(10, 132, 255, 0.05);
  
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -1px rgba(15, 23, 42, 0.02);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.05), 0 4px 6px -2px rgba(15, 23, 42, 0.02);
  --shadow-glow: 0 0 25px rgba(10, 132, 255, 0.15);

  /* Layout */
  --header-height: 80px;
  --border-radius: 12px;
  --border-radius-lg: 20px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Geometric blueprint dots color */
  --grid-color: rgba(15, 23, 42, 0.035);
}

/* Dark Mode Variables Override */
[data-theme="dark"] {
  --bg-color: #080E1A;
  --card-bg: #0E1726;
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --border-color: #1E293B;
  
  --glass-bg: rgba(14, 23, 38, 0.75);
  --glass-border: rgba(255, 255, 255, 0.02);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 25px rgba(10, 132, 255, 0.1);
  
  --grid-color: rgba(255, 255, 255, 0.015);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-secondary);
  background-color: var(--bg-color);
  background-image: radial-gradient(var(--grid-color) 1.5px, transparent 1.5px);
  background-size: 32px 32px;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

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

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

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

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

h4 {
  font-size: 1.25rem;
}

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  font-weight: 400;
}

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

/* Container */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

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

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

/* Section Spacing */
.section-padding {
  padding: 120px 0;
}

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

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background-color: rgba(10, 132, 255, 0.1);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 50px;
  margin-bottom: 16px;
  border: 1px solid rgba(10, 132, 255, 0.2);
}

.section-title {
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--border-radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #FFFFFF;
  border: none;
  box-shadow: 0 4px 15px rgba(10, 132, 255, 0.2);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.btn-primary:hover::after {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(10, 132, 255, 0.4);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--border-color);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background-color: rgba(10, 132, 255, 0.05);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--gradient-accent);
  color: #FFFFFF;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.85rem;
  border-radius: 8px;
}

/* Glass & Card Design */
.card-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--border-radius);
  transition: all var(--transition-normal);
}

.card-premium {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.card-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.card-premium:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), 0 10px 30px rgba(10, 132, 255, 0.05);
  border-color: var(--primary);
}

.card-premium:hover::before {
  opacity: 1;
}

/* Icon Wrap */
.icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: rgba(10, 132, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 24px;
  transition: all var(--transition-normal);
}

.card-premium:hover .icon-wrap {
  background: var(--gradient-primary);
  color: #FFFFFF;
  transform: scale(1.1);
}

/* Badges & Accents */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  background-color: rgba(10, 132, 255, 0.1);
  color: var(--primary);
  border: 1px solid rgba(10, 132, 255, 0.2);
}

/* Gradient Texts */
.gradient-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.mt-48 { margin-top: 48px; }
.w-full { width: 100%; }

/* Scroll Down Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-secondary);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  cursor: pointer;
}

.mouse {
  width: 26px;
  height: 42px;
  border: 2px solid var(--text-secondary);
  border-radius: 20px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
  0% { opacity: 0; top: 8px; }
  30% { opacity: 1; }
  100% { opacity: 0; top: 18px; }
}
