/* ============================================
   GSM ADJAA Main Styles - Clean & Consolidated
   ============================================ */

/* 1. ROOT VARIABLES */
:root {
  --primary-color: #2563EB; /* Vibrant Blue */
  --primary-light: #60A5FA;
  --primary-dark: #1E40AF;
  --secondary-color: #10B981; /* Emerald */
  --accent-color: #F59E0B; /* Amber */
  --text-primary: #1F2937; /* Gray 800 */
  --text-secondary: #6B7280; /* Gray 500 */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F3F4F6;
  --bg-tertiary: #E5E7EB;
  --border-color: #E5E7EB;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.5);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --gradient-hero: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

/* 2. DARK MODE VARIABLES */
body.dark-mode {
  --primary-color: #3B82F6;
  --primary-light: #60A5FA;
  --primary-dark: #1E40AF;
  --text-primary: #F9FAFB;
  --text-secondary: #D1D5DB;
  --bg-primary: #111827; /* Gray 900 */
  --bg-secondary: #1F2937; /* Gray 800 */
  --bg-tertiary: #374151; /* Gray 700 */
  --border-color: #374151;
  --glass-bg: rgba(17, 24, 39, 0.85);
  --glass-border: rgba(255, 255, 255, 0.1);
}

/* 3. BASE STYLES */
body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-tertiary);
  background-image: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.1) 0%, transparent 25%),
                    radial-gradient(circle at 100% 100%, rgba(16, 185, 129, 0.1) 0%, transparent 25%);
  background-attachment: fixed;
  transition: var(--transition-base);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

p, .text-muted {
  color: var(--text-secondary) !important;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition-base);
}

a:hover {
  color: var(--primary-dark);
}

/* 4. NAVBAR STYLES */
.navbar {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  padding: 0.75rem 0;
  position: fixed !important;
  top: 0 !important;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1030 !important;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary) !important;
}

.navbar-brand img {
  height: 40px;
  width: auto;
  transition: var(--transition-base);
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

.navbar-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.navbar-brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.navbar-brand-company {
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.navbar-nav .nav-link {
  color: var(--text-primary) !important;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  transition: var(--transition-base);
}

.navbar-nav .nav-link:hover, 
.navbar-nav .nav-link.active {
  color: var(--primary-color) !important;
  background: rgba(37, 99, 235, 0.1);
}

.btn-dark-mode-toggle {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-base);
}

.btn-dark-mode-toggle:hover {
  background: var(--bg-secondary);
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: rotate(15deg);
}

/* 5. HERO SECTION */
.header {
  padding: 120px 0 80px;
  position: relative;
  background: transparent !important;
}

.header-tagline {
  color: var(--text-primary);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 2rem;
  text-align: center;
}

.header-cta-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

/* 6. CARDS & COMPONENTS */
.card, 
.product-slide-card, 
.service-card-modern,
.software-card,
.stats-card {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
  transition: var(--transition-base);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover, 
.product-slide-card:hover, 
.service-card-modern:hover,
.software-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

.card-body {
  background: transparent !important;
}

/* Icons */
.service-icon-wrapper, 
.product-icon-wrapper {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--bg-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
}

.service-card-modern:hover .service-icon-wrapper,
.product-slide-card:hover .product-icon-wrapper {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.2);
}

.service-icon, 
.product-icon-wrapper i {
  font-size: 2rem;
  color: var(--primary-color);
}

.product-icon-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Product Specifics */
.product-slide-title {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  text-align: center;
}

.product-slide-version {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  text-align: center;
  display: block;
}

.product-slide-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  text-align: center;
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.product-slide-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

/* Buttons */
.btn {
  border-radius: var(--radius-md);
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-success {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: #fff;
}

.btn-success:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.btn-product {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* Sections */
.section {
  padding: 80px 0;
  position: relative;
}

.why-choose-section {
  background-color: var(--bg-secondary);
}

.dark-mode .why-choose-section {
  background-color: var(--bg-primary);
  background-image: radial-gradient(circle at 0% 0%, rgba(37, 99, 235, 0.05) 0%, transparent 50%);
}

.section-title {
  color: var(--text-primary);
  font-size: 2.25rem;
  text-align: center;
  margin-bottom: 1rem;
}

.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  margin: 0 auto 3rem;
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
}

/* 7. FOOTER */
.footer {
  background: var(--bg-primary) !important;
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
}

.dark-mode .footer {
  background: var(--bg-secondary) !important;
}

.footer-title {
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.2rem;
}

.social-link:hover {
  background: var(--primary-color);
  color: #fff;
  transform: translateY(-3px);
}

.qr-code-img {
  border-radius: var(--radius-md);
  padding: 5px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.qr-code-text {
  color: var(--text-secondary) !important;
}

/* 8. MODALS */
.modal-content {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.modal-header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

.modal-title {
  color: var(--text-primary);
}

.modal-body {
  color: var(--text-primary);
}

.modal-footer {
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

/* 9. UTILITIES */
/* Preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

body.dark-mode #preloader {
  background: var(--bg-primary);
}

#preloader img {
  height: 8rem;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

/* Scroll to Top */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  border: none;
  box-shadow: var(--shadow-lg);
  display: none; /* Controlled by JS */
  z-index: 1000;
  transition: var(--transition-base);
}

.scroll-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* Dropdown */
.dropdown-menu {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.dropdown-item {
  color: var(--text-primary);
  border-radius: var(--radius-md);
  margin: 2px 0;
}

.dropdown-item:hover {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary-color);
}

/* Ripple Animation */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: ripple-animation 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Store Specifics */
.search-container {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
}

.search-input-group {
  position: relative;
}

.search-input-group i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  z-index: 1;
}

.search-input-group input {
  padding-left: 3rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: var(--transition-base);
}

.search-input-group input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.app-icon {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--primary-color);
  margin: 0 auto 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.software-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  text-align: center;
}

.software-card-version {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  text-align: center;
}

.software-card-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  text-align: center;
}

.software-card-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-download {
  background-color: var(--secondary-color);
  border: none;
  color: white;
  font-weight: 500;
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-md);
  transition: var(--transition-base);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: white;
  filter: brightness(1.1);
}

.btn-view {
  background: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  font-weight: 500;
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-md);
  transition: var(--transition-base);
  text-decoration: none;
}

.btn-view:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-secondary);
}

.empty-state i {
  font-size: 4rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
  opacity: 0.5;
}

.stats-card {
  background: var(--gradient-hero);
  color: white;
}

.stats-card h3 {
  color: white;
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
}

.stats-card p {
  color: rgba(255, 255, 255, 0.9) !important;
  margin: 0.5rem 0 0;
}

.stats-card i {
  color: rgba(255, 255, 255, 0.9);
}

/* 10. RESPONSIVE */
@media (max-width: 768px) {
  .header {
    padding: 80px 0 60px;
  }
  
  .header-tagline {
    font-size: 1.25rem;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .navbar-nav {
    margin-top: 1rem;
  }
  
  .footer {
    text-align: center;
  }
  
  .social-links {
    justify-content: center;
    margin-top: 1rem;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .app-icon {
    width: 80px;
    height: 80px;
  }
}
