/* Modern Tech Company Design System */
:root {
  /* Color Palette - Dark theme with orange accents */
  --primary-bg: #0a0a0a;
  --secondary-bg: #111111;
  --tertiary-bg: #1a1a1a;
  --card-bg: #1e1e1e;
  --border-color: #2a2a2a;
  --accent-orange: #ff6b35;
  --accent-orange-hover: #ff8c5a;
  --accent-orange-light: rgba(255, 107, 53, 0.1);
  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;
  --text-muted: #666666;
  --success: #00d4aa;
  --warning: #ffb800;
  --error: #ff4757;
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Monaco, 'Cascadia Code', monospace;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.25);
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Layout */
  --max-width: 1200px;
  --content-width: 800px;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-primary);
  background: var(--primary-bg);
  color: var(--text-primary);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography Scale */
h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-md);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--space-md);
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: var(--space-sm);
}

h5 {
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: var(--space-sm);
}

h6 {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: var(--space-sm);
}

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

/* Layout Components */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.content-container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-3xl) 0;
}

.section-sm {
  padding: var(--space-2xl) 0;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-bg) 0%, var(--secondary-bg) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, var(--accent-orange-light) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  padding: var(--space-sm) 0;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  font-weight: 400;
}

/* Cards */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-orange);
}

.card-header {
  margin-bottom: var(--space-md);
}

.card-title {
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.card-subtitle {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-lg);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent-orange);
  color: var(--text-primary);
}

.btn-primary:hover {
  background: var(--accent-orange-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
  background: var(--tertiary-bg);
  border-color: var(--accent-orange);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--accent-orange);
  background: var(--accent-orange-light);
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: var(--space-sm) 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav-logo-img {
  height: 40px;
  width: auto;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.nav-logo:hover .nav-logo-img {
  opacity: 1;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--space-lg);
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--accent-orange);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-orange);
  transition: width var(--transition-fast);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: var(--accent-orange);
}

.nav-link.active::after {
  width: 100%;
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--space-lg);
}

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

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

.grid-4 {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
}

/* Fade-out effect for sections */
.section {
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.section.fade-out {
  opacity: 0.3;
  transform: translateY(20px);
}

/* Social Media Links */
.social-links {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  align-items: center;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--accent-orange);
  text-decoration: none;
  transition: all 0.3s ease;
  padding: var(--space-sm);
  border-radius: var(--radius-md);
}

.social-link:hover {
  color: var(--text-primary);
  background: var(--accent-orange);
  transform: translateY(-2px);
}

.social-link svg {
  transition: transform 0.3s ease;
}

.social-link:hover svg {
  transform: scale(1.1);
}

/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition-slow);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .nav-logo {
    font-size: 1.3rem;
  }
  
  .nav-logo-img {
    height: 32px;
  }
  
  .hero {
    min-height: 80vh;
    padding: var(--space-lg) 0;
  }
  
  .section {
    padding: var(--space-2xl) 0;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .social-links {
    flex-direction: column;
    gap: var(--space-md);
  }
  
  .social-link {
    justify-content: center;
    min-width: 200px;
  }
}

/* Software Slideshow */
.software-slideshow-container {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

/* Product Slideshow */
.product-slideshow-container {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.software-slideshow {
  position: relative;
  height: 600px;
  background: var(--tertiary-bg);
}

.software-slide {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.4s ease;
  padding: var(--space-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.software-slide.active {
  opacity: 1;
  display: flex;
}

.software-slide img {
  width: 100%;
  height: auto;
  max-width: 800px;
  max-height: 80%;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.slide-caption {
  margin-top: var(--space-md);
  text-align: center;
  max-width: 500px;
}

/* Product Slideshow Elements */
.product-slideshow {
  position: relative;
  height: 600px;
  background: var(--tertiary-bg);
}

.product-slide {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.4s ease;
  padding: var(--space-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.product-slide.active {
  opacity: 1;
  display: flex;
}

.product-slide img {
  width: 100%;
  height: auto;
  max-width: 800px;
  max-height: 80%;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.product-slideshow-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-lg);
  background: var(--card-bg);
}

.product-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--text-muted);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.product-dot:hover {
  background-color: var(--text-secondary);
}

.product-dot.active {
  background-color: var(--accent-orange);
}

.slide-caption h5 {
  color: var(--accent-orange);
  margin-bottom: var(--space-xs);
  font-size: 1.25rem;
  font-weight: 500;
}

.slide-caption p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
}

.slideshow-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-lg);
  background: var(--card-bg);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--text-muted);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot:hover {
  background-color: var(--text-secondary);
}

.dot.active {
  background-color: var(--accent-orange);
}

@media (max-width: 768px) {
  .software-slideshow {
    height: 500px;
  }
  
  .software-slide img {
    max-height: 75%;
  }
  
  .product-slideshow {
    height: 500px;
  }
  
  .product-slide img {
    max-height: 75%;
  }
}

@media (max-width: 480px) {
  .container,
  .content-container {
    padding: 0 var(--space-sm);
  }
  
  .nav-logo {
    font-size: 1.2rem;
  }
  
  .nav-logo-img {
    height: 28px;
  }
  
  .card {
    padding: var(--space-md);
  }
  
  .software-slideshow {
    height: 400px;
  }
  
  .software-slide {
    padding: var(--space-md);
  }
  
  .software-slide img {
    max-height: 70%;
  }
  
  .product-slideshow {
    height: 400px;
  }
  
  .product-slide {
    padding: var(--space-md);
  }
  
  .product-slide img {
    max-height: 70%;
  }
}