/* FUTURISTIC YET FRIENDLY TECH THEME */
/* AI & Innovation Focus with Modern UI Components */

:root {
  /* Color System */
  --primary: #6B46C1;
  --primary-light: #9F7AEA;
  --primary-dark: #553C9A;
  --secondary: #9F7AEA;
  --neutral-light: #F7FAFC;
  --neutral-dark: #1A202C;
  --bg: #FFFFFF;
  --text: #2D3748;
  --text-light: #4A5568;
  --link: #6B46C1;
  
  /* Typography */
  --font-primary: 'Inter', sans-serif;
  --font-secondary: 'Space Mono', monospace;
  --text-base: 1rem;
  --text-scale: 1.25;
  
  /* Spacing & Layout */
  --space-unit: 1rem;
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  
  /* Effects */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --glow: 0 0 10px rgba(107, 70, 193, 0.3);
  
  /* Animation */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
body {
  font-family: var(--font-primary);
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin: calc(var(--space-unit) * 1.5) 0 var(--space-unit);
  color: var(--neutral-dark);
}

h1 { font-size: calc(var(--text-base) * var(--text-scale) * 2.5); }
h2 { font-size: calc(var(--text-base) * var(--text-scale) * 2); }
h3 { font-size: calc(var(--text-base) * var(--text-scale) * 1.75); }
h4 { font-size: calc(var(--text-base) * var(--text-scale) * 1.5); }
h5 { font-size: calc(var(--text-base) * var(--text-scale) * 1.25); }
h6 { font-size: var(--text-base); }

p {
  margin-bottom: var(--space-unit);
  color: var(--text-light);
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
}

a:hover {
  color: var(--primary-dark);
}

a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-light);
  transition: width var(--transition-normal);
}

a:hover::after {
  width: 100%;
}

/* Futuristic Link Effect */
.link-futuristic {
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: left bottom;
  transition: background-size var(--transition-normal);
}

.link-futuristic:hover {
  background-size: 100% 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--space-unit) * 0.75) calc(var(--space-unit) * 1.5);
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: all var(--transition-normal);
  cursor: pointer;
  border: none;
  font-family: var(--font-primary);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), var(--glow);
}

.btn-secondary {
  background-color: var(--secondary);
  color: white;
}

.btn-secondary:hover {
  background-color: var(--primary);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
}

/* Futuristic Button Effect */
.btn-futuristic::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.7s;
}

.btn-futuristic:hover::before {
  left: 100%;
}

/* Cards */
.card {
  background: var(--bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  position: relative;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg), 0 10px 25px -5px rgba(107, 70, 193, 0.2);
}

.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0.8;
}

/* UI Components */
/* Slider */
.slider-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.slider-track {
  display: flex;
  transition: transform var(--transition-normal);
}

.slider-item {
  min-width: 100%;
  position: relative;
}

/* Accordion */
.accordion {
  border: 1px solid var(--neutral-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.accordion-item {
  border-bottom: 1px solid var(--neutral-light);
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-header {
  padding: calc(var(--space-unit) * 1.5);
  background-color: var(--neutral-light);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color var(--transition-fast);
}

.accordion-header:hover {
  background-color: rgba(159, 122, 234, 0.1);
}

.accordion-content {
  padding: 0 calc(var(--space-unit) * 1.5);
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal), padding var(--transition-normal);
}

.accordion-item.active .accordion-content {
  padding: calc(var(--space-unit) * 1.5);
  max-height: 500px;
}

/* Tabs */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--neutral-light);
}

.tab {
  padding: calc(var(--space-unit) * 0.75) calc(var(--space-unit) * 1.5);
  cursor: pointer;
  position: relative;
  color: var(--text-light);
  transition: all var(--transition-fast);
}

.tab:hover {
  color: var(--primary);
}

.tab.active {
  color: var(--primary);
  font-weight: 500;
}

.tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
}

.tab-content {
  display: none;
  padding: calc(var(--space-unit) * 1.5) 0;
}

.tab-content.active {
  display: block;
}

/* Futuristic Elements */
.futuristic-border {
  border: 1px solid var(--neutral-light);
  position: relative;
}

.futuristic-border::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border: 1px solid var(--primary-light);
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.futuristic-border:hover::before {
  opacity: 0.6;
}

/* Responsive Design */
@media (max-width: 768px) {
  :root {
    --text-base: 0.875rem;
    --space-unit: 0.75rem;
  }
  
  h1 { font-size: calc(var(--text-base) * var(--text-scale) * 2); }
  h2 { font-size: calc(var(--text-base) * var(--text-scale) * 1.75); }
  
  .tabs {
    flex-direction: column;
    border-bottom: none;
  }
  
  .tab {
    border-bottom: 1px solid var(--neutral-light);
  }
  
  .tab.active::after {
    display: none;
  }
}

/* Animation Enhancements */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(107, 70, 193, 0.4); }
  50% { box-shadow: 0 0 10px 5px rgba(107, 70, 193, 0); }
}

.pulse {
  animation: pulse-glow 2s infinite;
}

/* AI Theme Elements */
.ai-chip {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(107, 70, 193, 0.1);
  color: var(--primary);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Technology Theme Enhancements */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-unit);
}

.tech-grid-item {
  background: var(--neutral-light);
  padding: var(--space-unit);
  border-radius: var(--radius-sm);
  transition: all var(--transition-normal);
}

.tech-grid-item:hover {
  background: white;
  box-shadow: var(--shadow-md);
}