/* VIOware Technologies - Modern Design 2025 */

/* ============================================
   CSS Variables for Easy Theming
   ============================================ */
:root {
  /* Primary Colors - Modern Blue Gradient */
  --primary-color: #3498db;
  --primary-dark: #2980b9;
  --primary-light: #5dade2;
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  
  /* Secondary Colors */
  --secondary-color: #2ecc71;
  --secondary-dark: #27ae60;
  
  /* Accent Colors */
  --accent-color: #e74c3c;
  --accent-warning: #f39c12;
  --accent-info: #3498db;
  
  /* Neutral Colors */
  --text-primary: #2c3e50;
  --text-secondary: #7f8c8d;
  --text-light: #95a5a6;
  --bg-white: #ffffff;
  --bg-light: #f8f9fa;
  --bg-lighter: #ecf0f1;
  --border-color: #e0e0e0;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.15);
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  
  /* Spacing */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 40px;
  --spacing-xl: 60px;
  --spacing-2xl: 80px;
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Poppins', sans-serif;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ============================================
   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);
  color: var(--text-primary);
  background-color: var(--bg-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

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

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

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

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

h5 {
  font-size: 1.125rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: var(--spacing-sm);
  color: var(--text-secondary);
  font-size: 1.0625rem;
}

.lead {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   Container and Layout
   ============================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container-fluid {
  width: 100%;
  padding: 0 var(--spacing-md);
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 calc(var(--spacing-sm) * -1);
}

[class*="col-"] {
  padding: 0 var(--spacing-sm);
  width: 100%;
}

/* Grid System */
.col-md-6 { width: 50%; }
.col-md-4 { width: 33.333%; }
.col-md-3 { width: 25%; }
.col-md-5 { width: 41.666%; }
.col-md-7 { width: 58.333%; }
.col-md-12 { width: 100%; }

@media (max-width: 768px) {
  [class*="col-md-"] {
    width: 100%;
  }
}

/* ============================================
   Header & Navigation - Modern Glassmorphism
   ============================================ */
.header_section {
  position: relative;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.header_section.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
}

.custom_nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm) 0;
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary) !important;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.navbar-brand:hover {
  opacity: 0.8;
}

.navbar-nav {
  display: flex;
  list-style: none;
  gap: var(--spacing-md);
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--text-primary) !important;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-gradient);
  transition: all var(--transition-base);
  transform: translateX(-50%);
}

.nav-link:hover {
  color: var(--primary-color);
  background: rgba(52, 152, 219, 0.05);
}

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

/* Dropdown Menu - Modern Style */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-white) !important;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--spacing-xs);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-base);
  border: 1px solid var(--border-color);
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: var(--spacing-xs) var(--spacing-sm);
  color: var(--text-primary) !important;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  font-size: 0.9375rem;
}

.dropdown-item:hover {
  background: var(--bg-light) !important;
  color: var(--primary-color) !important;
  transform: translateX(4px);
}

/* Mobile Menu Toggle */
.navbar-toggler {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-xs);
}

.navbar-toggler-icon {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  display: block;
  position: relative;
  transition: all var(--transition-base);
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-base);
}

.navbar-toggler-icon::before {
  top: -8px;
}

.navbar-toggler-icon::after {
  bottom: -8px;
}

@media (max-width: 992px) {
  .navbar-toggler {
    display: block;
  }

  .navbar-collapse {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-md) 0;
  }

  .navbar-collapse .navbar-nav {
    flex-direction: column;
    gap: 0;
    padding: 0 var(--spacing-md);
  }
}

/* ============================================
   Hero Section - Minimal Style
   ============================================ */
.hero_area {
  min-height: auto;
  display: block;
  background: transparent;
  position: relative;
  overflow: visible;
  padding: 0;
}

.hero_area::before {
  display: none;
}

.hero_area .container {
  position: relative;
  z-index: 1;
}

/* ============================================
   Sections - Modern Spacing
   ============================================ */
section {
  padding: var(--spacing-xl) 0;
  position: relative;
}

.who_section,
.service_section,
.work_section,
.client_section,
.reviews_section {
  padding: var(--spacing-xl) 0;
}

/* Alternating Background */
section:nth-child(even) {
  background: transparent;
}

/* ============================================
   Heading Container - Modern Style
   ============================================ */
.heading_container {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  position: relative;
}

.heading_container h2 {
  position: relative;
  display: inline-block;
  padding-bottom: var(--spacing-sm);
}

.heading_container p {
  max-width: 600px;
  margin: var(--spacing-sm) auto 0;
  color: var(--text-secondary);
}

/* ============================================
   Cards - Modern Design
   ============================================ */
.box {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  height: 100%;
  border: 1px solid var(--border-color);
}

.box:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

.box h5 {
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
  font-size: 1.25rem;
}

.box p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   Buttons - Modern Gradient Style
   ============================================ */
.blue-button,
.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background: var(--primary-gradient);
  color: var(--bg-white);
  text-decoration: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  position: relative;
  overflow: hidden;
}

.button-group {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.button-group .blue-button,
.button-group .btn-primary {
  margin: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  min-width: 200px;
}

@media (max-width: 768px) {
  .button-group {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .button-group .blue-button,
  .button-group .btn-primary {
    width: 220px;
  }
}

.blue-button::before,
.btn-primary::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 var(--transition-slow);
}

.blue-button:hover,
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.blue-button:hover::before,
.btn-primary:hover::before {
  left: 100%;
}

.blue-button:active,
.btn-primary:active {
  transform: translateY(0);
}

/* Secondary Button */
.btn-secondary {
  background: var(--bg-white);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

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

/* ============================================
   Images - Modern Style
   ============================================ */
.img-box {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.img-box img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--transition-slow);
}

.img-box:hover img {
  transform: scale(1.05);
}

.with-shadow {
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-lg);
}

/* ============================================
   Feature Lists - Modern Icons
   ============================================ */
.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  padding: var(--spacing-xs) 0;
  padding-left: 32px;
  position: relative;
  color: var(--text-secondary);
  line-height: 1.7;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: var(--spacing-xs);
  width: 24px;
  height: 24px;
  background: var(--primary-gradient);
  color: var(--bg-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
}

/* ============================================
   System Requirements - Modern Cards
   ============================================ */
.system-requirements {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.os-box {
  flex: 1;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  border: 2px solid transparent;
}

.os-box:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

.os-icon {
  margin-bottom: var(--spacing-md);
}

.os-icon img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.os-box h4 {
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
}

.os-box ul {
  list-style: none;
  padding: 0;
  margin: var(--spacing-sm) 0;
  color: var(--text-secondary);
}

.os-box ul li {
  padding: 4px 0;
}

/* ============================================
   Client Section - Modern Testimonials
   ============================================ */
.client_section {
  background: var(--bg-light);
}

.carousel-wrap {
  margin-top: var(--spacing-lg);
}

.client_section .box {
  background: var(--bg-white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.client_section .img-box {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-md);
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--primary-light);
}

.client_section .img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.client_section .detail-box h5 {
  margin-bottom: var(--spacing-xs);
  color: var(--text-primary);
}

.client_section .detail-box p {
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.7;
}

/* ============================================
   Reviews Section - Modern Grid
   ============================================ */
.reviews_section .box {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.reviews_section .detail-box {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.reviews_section .detail-box h5 {
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
}

.reviews_section .detail-box p {
  flex: 1;
  margin-bottom: var(--spacing-md);
}

/* ============================================
   Footer - Modern Design
   ============================================ */
.footer_section {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: var(--bg-white);
  padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer_section h4 {
  color: var(--bg-white);
  margin-bottom: var(--spacing-md);
  font-size: 1.25rem;
}

.footer_section p,
.footer_section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer_section a:hover {
  color: var(--bg-white);
}

.footer_section ul {
  list-style: none;
  padding: 0;
}

.footer_section ul li {
  padding: var(--spacing-xs) 0;
}

.footer-bottom {
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.pt-1 { padding-top: var(--spacing-xs); }
.pt-2 { padding-top: var(--spacing-sm); }
.pt-3 { padding-top: var(--spacing-md); }
.pt-4 { padding-top: var(--spacing-lg); }
.pt-5 { padding-top: var(--spacing-xl); }

.pb-1 { padding-bottom: var(--spacing-xs); }
.pb-2 { padding-bottom: var(--spacing-sm); }
.pb-3 { padding-bottom: var(--spacing-md); }
.pb-4 { padding-bottom: var(--spacing-lg); }
.pb-5 { padding-bottom: var(--spacing-xl); }

/* ============================================
   Animations
   ============================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

.slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

.slide-in-right {
  animation: slideInRight 0.6s ease-out;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1200px) {
  :root {
    --spacing-xl: 50px;
    --spacing-2xl: 60px;
  }
}

@media (max-width: 992px) {
  :root {
    --spacing-lg: 32px;
    --spacing-xl: 40px;
    --spacing-2xl: 50px;
  }
  
  .hero_area {
    min-height: auto;
    padding: var(--spacing-2xl) 0;
  }
}

@media (max-width: 768px) {
  :root {
    --spacing-md: 20px;
    --spacing-lg: 28px;
    --spacing-xl: 36px;
    --spacing-2xl: 44px;
  }
  
  .system-requirements {
    flex-direction: column;
  }
  
  .row {
    margin: 0;
  }
  
  [class*="col-"] {
    padding: var(--spacing-sm) 0;
  }
}

@media (max-width: 576px) {
  html {
    font-size: 14px;
  }
  
  .container {
    padding: 0 var(--spacing-sm);
  }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
  .header_section,
  .footer_section,
  .navbar-toggler {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
  }
  
  .box {
    box-shadow: none;
    border: 1px solid #000;
  }
}

/* ============================================
   Compatibility Fixes
   ============================================ */
/* Ensure header is not fixed on sub-pages */
body.sub_page .header_section {
  position: relative;
}

/* Remove hero area styling on sub-pages */
body.sub_page .hero_area {
  min-height: auto;
  background: transparent;
  padding: 0;
}

/* Fix navigation text color */
.custom_nav-container a {
  color: var(--text-primary) !important;
}

.custom_nav-container a:hover {
  color: var(--primary-color) !important;
}

/* Ensure sections have proper spacing */
.layout_padding {
  padding: var(--spacing-xl) 0;
}

/* Fix button colors */
a.blue-button,
.btn-primary {
  color: var(--bg-white) !important;
}

/* ============================================
   Accessibility
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
.reviews_section .detail-box h5 a {
  color: var(--primary-color);
  text-decoration: none;
}

.reviews_section .detail-box h5 a:hover {
  text-decoration: underline;
}
