/*
 * NaviPhone - Custom Styles
 * Modern, responsive design for mobile repair services
 */

/* ===============================
   CUSTOM VARIABLES & OVERRIDES
   =============================== */
:root {
  /* Primary Colors */
  --bs-primary: #0066cc;
  --bs-primary-rgb: 0, 102, 204;
  --bs-secondary: #6c757d;
  --bs-success: #28a745;
  --bs-warning: #ffc107;
  --bs-info: #17a2b8;
  --bs-danger: #dc3545;
  
  /* Custom Colors */
  --naviphone-blue: #0066cc;
  --naviphone-dark-blue: #004499;
  --naviphone-light-blue: #e6f3ff;
  --naviphone-orange: #ff6b35;
  --naviphone-green: #28a745;
  
  /* Typography */
  --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
  --font-secondary: 'Poppins', sans-serif;
  
  /* Shadows */
  --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
  
  /* Transitions */
  --transition-fast: 0.15s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;
}

/* ===============================
   GLOBAL STYLES
   =============================== */
body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: #333;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  font-weight: 600;
  line-height: 1.2;
}

/* ===============================
   NAVIGATION
   =============================== */
.navbar {
  transition: all var(--transition-normal);
  backdrop-filter: blur(10px);
}

.navbar-brand {
  font-family: var(--font-secondary);
  font-weight: 700;
  font-size: 1.5rem;
}

.navbar-nav .nav-link {
  font-weight: 500;
  padding: 0.75rem 1rem;
  transition: all var(--transition-fast);
  position: relative;
}

.navbar-nav .nav-link:hover {
  color: var(--naviphone-blue);
  transform: translateY(-1px);
}

.navbar-nav .nav-link.active {
  color: var(--naviphone-blue);
  font-weight: 600;
}

.navbar-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 2px;
  background: var(--naviphone-blue);
}

/* ===============================
   HERO SECTION
   =============================== */
.hero-section {
  background: linear-gradient(135deg, var(--naviphone-blue) 0%, var(--naviphone-dark-blue) 100%);
  position: relative;
  overflow: hidden;
}

.hero-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.min-vh-75 {
  min-height: 75vh;
}

.hero-phone-img {
  max-width: 100%;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.floating-stats {
  position: relative;
  margin-top: 2rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  padding: 1rem;
  margin: 0.5rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  display: inline-block;
  min-width: 120px;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--naviphone-blue);
}

.stat-label {
  font-size: 0.8rem;
  color: #666;
  font-weight: 500;
}

/* ===============================
   GRADIENT BACKGROUNDS
   =============================== */
.bg-gradient-primary {
  background: linear-gradient(135deg, var(--naviphone-blue) 0%, var(--naviphone-dark-blue) 100%);
}

/* ===============================
   CARDS & COMPONENTS
   =============================== */
.service-card {
  transition: all var(--transition-normal);
  border: 1px solid rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s;
}

.service-card:hover::before {
  left: 100%;
}

.calculator-card {
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.calculator-step {
  display: none;
}

.calculator-step.active {
  display: block;
  animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-number {
  background: var(--naviphone-blue);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-right: 1rem;
}

/* ===============================
   BRAND & MODEL SELECTION
   =============================== */
.brand-option, .model-option, .problem-option {
  cursor: pointer;
}

.brand-card, .model-card, .problem-card {
  transition: all var(--transition-fast);
  border: 2px solid transparent;
}

.brand-option:hover .brand-card,
.model-option:hover .model-card,
.problem-option:hover .problem-card {
  border-color: var(--naviphone-blue);
  background-color: var(--naviphone-light-blue);
  transform: translateY(-2px);
}

.brand-option.selected .brand-card,
.model-option.selected .model-card,
.problem-option.selected .problem-card {
  border-color: var(--naviphone-blue);
  background-color: var(--naviphone-blue);
  color: white;
}

.brand-logo {
  transition: all var(--transition-fast);
  filter: grayscale(100%);
}

.brand-option:hover .brand-logo,
.brand-option.selected .brand-logo {
  filter: grayscale(0%);
}

/* ===============================
   FLOATING ELEMENTS
   =============================== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}

.whatsapp-float a {
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-normal);
  animation: pulse 2s infinite;
}

.whatsapp-float a:hover {
  transform: scale(1.1);
  color: white;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.btn-floating {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow);
  transition: all var(--transition-normal);
}

.btn-floating:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ===============================
   TESTIMONIALS
   =============================== */
.testimonial-card {
  transition: all var(--transition-normal);
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.client-avatar {
  width: 50px;
  height: 50px;
  object-fit: cover;
}

.stars i {
  color: #ffc107;
}

/* ===============================
   COMPARISON TABLE
   =============================== */
.comparison-table .table {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.comparison-table .table th {
  border: none;
  font-weight: 600;
  padding: 1rem;
}

.comparison-table .table td {
  border: none;
  padding: 1rem;
  vertical-align: middle;
}

/* ===============================
   TRUST INDICATORS
   =============================== */
.trust-card {
  transition: all var(--transition-normal);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.trust-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.trust-icon i {
  transition: all var(--transition-normal);
}

.trust-card:hover .trust-icon i {
  transform: scale(1.1);
}

/* ===============================
   FOOTER
   =============================== */
footer {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

footer a {
  transition: all var(--transition-fast);
}

footer a:hover {
  color: var(--naviphone-blue) !important;
  transform: translateX(3px);
}

.social-links a {
  display: inline-block;
  transition: all var(--transition-normal);
}

.social-links a:hover {
  transform: translateY(-2px);
  color: var(--naviphone-blue) !important;
}

.certification-badge {
  filter: grayscale(50%);
  transition: all var(--transition-normal);
}

.certification-badge:hover {
  filter: grayscale(0%);
  transform: scale(1.05);
}

/* ===============================
   COOKIE BANNER
   =============================== */
.cookie-banner {
  backdrop-filter: blur(10px);
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* ===============================
   PAGE SPECIFIC STYLES
   =============================== */

/* Page Headers */
.page-header {
  background: linear-gradient(135deg, var(--naviphone-blue) 0%, var(--naviphone-dark-blue) 100%);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

/* Calculator Progress */
.calculator-progress .progress {
  background-color: rgba(0, 0, 0, 0.1);
}

.calculator-progress .progress-bar {
  transition: width var(--transition-normal);
}

/* Service Tabs */
.service-tabs {
  margin-bottom: 2rem;
}

.service-tab-btn {
  transition: all var(--transition-fast);
  border-radius: 2rem;
  margin: 0.25rem;
}

.service-tab-btn:hover,
.service-tab-btn.active {
  background-color: var(--naviphone-blue);
  border-color: var(--naviphone-blue);
  color: white;
  transform: translateY(-1px);
}

/* Process Steps */
.steps-timeline {
  position: relative;
}

.step-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  position: relative;
}

.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 19px;
  top: 40px;
  width: 2px;
  height: 20px;
  background: var(--naviphone-blue);
  opacity: 0.3;
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--naviphone-blue);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-right: 1rem;
  font-size: 0.9rem;
}

/* Price Display */
.price-display {
  text-align: center;
}

.price-label {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

.price-amount {
  font-weight: 700;
  color: #ffc107;
}

.price-note {
  font-size: 0.8rem;
  opacity: 0.8;
  margin-top: 0.25rem;
}

/* Breakdown List */
.breakdown-list {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  padding: 1rem;
}

.breakdown-item {
  padding: 0.5rem 0;
  font-size: 0.9rem;
}

.breakdown-item:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===============================
   RESPONSIVE DESIGN
   =============================== */
@media (max-width: 768px) {
  .display-4 { font-size: 2rem; }
  .display-5 { font-size: 1.8rem; }
  .display-6 { font-size: 1.5rem; }
  
  .hero-section { padding: 3rem 0; }
  
  .floating-stats {
    margin-top: 1rem;
  }
  
  .stat-card {
    margin: 0.25rem;
    min-width: 100px;
    padding: 0.75rem;
  }
  
  .stat-number { font-size: 1.2rem; }
  .stat-label { font-size: 0.7rem; }
  
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
  }
  
  .whatsapp-float a {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  .calculator-navigation .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .service-section {
    margin-bottom: 3rem;
  }
  
  .brand-grid .col-6 {
    margin-bottom: 1rem;
  }
}

@media (max-width: 576px) {
  .container { padding: 0 1rem; }
  
  .hero-section { 
    padding: 2rem 0; 
    text-align: center;
  }
  
  .calculator-card { margin: 0 -0.5rem; }
  
  .floating-stats .stat-card {
    display: block;
    margin: 0.5rem auto;
    max-width: 150px;
  }
  
  .price-amount { font-size: 2rem !important; }
  
  .breakdown-list { padding: 0.75rem; }
  
  .service-tabs .btn {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
  }
}

/* ===============================
   PRINT STYLES
   =============================== */
@media print {
  .navbar,
  .whatsapp-float,
  .btn-floating,
  .cookie-banner,
  footer,
  .cta-section {
    display: none !important;
  }
  
  .calculator-results {
    page-break-inside: avoid;
  }
  
  body {
    font-size: 12px;
    line-height: 1.4;
  }
  
  .container {
    max-width: none;
    padding: 0;
  }
}

/* ===============================
   ACCESSIBILITY
   =============================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for keyboard navigation */
.btn:focus,
.form-control:focus,
.form-select:focus,
.nav-link:focus {
  box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
  outline: none;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --bs-primary: #000080;
    --naviphone-blue: #000080;
  }
  
  .btn-primary {
    background-color: #000080;
    border-color: #000080;
  }
  
  .text-primary {
    color: #000080 !important;
  }
}
