/* ============================================
   Yaady Enterprise - Professional UI Styles
   Modern, Clean, Accessible Design System
   ============================================ */

/* ===== ROOT VARIABLES ===== */
:root {
  /* Modern Soft Professional Palette */
  --primary-color: #4A90E2;
  --primary-dark: #2E5C8A;
  --primary-light: #7DB3F5;
  --accent-color: #5AB9EA;
  --secondary-color: #6B7E8F;
  --success-color: #4CAF93;
  --info-color: #5AB9EA;
  --warning-color: #FFB74D;
  --danger-color: #E57373;
  
  /* Soft, Modern Backgrounds */
  --nav-bg: #FFFFFF;
  --footer-bg: #2C3E50;
  --footer-bg-dark: #1E2A38;
  --light-bg: #F7F9FC;
  --lighter-bg: #FFFFFF;
  --section-bg: #F0F4F8;
  
  /* Readable Text Colors */
  --text-primary: #2C3E50;
  --text-secondary: #64748B;
  --text-muted: #94A3B8;
  --text-light: #FFFFFF;
  
  --border-radius: 0.5rem;
  --border-radius-lg: 1rem;
  --border-radius-sm: 0.25rem;
  
  /* Softer Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  
  --transition: all 0.3s ease;
}

/* ===== BASE STYLES ===== */
html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  margin-bottom: 350px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
}

/* ===== FOOTER ===== */
.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  min-height: 350px;
  background: linear-gradient(135deg, var(--footer-bg-dark) 0%, var(--footer-bg) 100%);
  color: var(--text-light);
  padding: 3rem 0 1rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: var(--transition);
}

.footer a:hover {
  color: var(--text-light);
  text-decoration: none;
}

.footer h5 {
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer .border-top {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Social media links - for future use */
.social-link {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--text-light);
  transition: var(--transition);
}

.social-link:hover {
  background: var(--primary-color);
  color: var(--text-light);
  transform: translateY(-3px);
}

/* ===== NAVIGATION ===== */
.navbar {
  background: var(--nav-bg) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color) !important;
  transition: var(--transition);
}

.navbar-brand:hover {
  color: var(--primary-dark) !important;
}

.navbar-nav .nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: var(--transition);
  border-radius: var(--border-radius-sm);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-color) !important;
  background: var(--light-bg);
}

/* ===== HERO SECTIONS ===== */
.hero-section {
  position: relative;
  min-height: 500px;
  background: linear-gradient(135deg, #5AB9EA 0%, var(--primary-color) 100%);
  color: var(--text-light);
  padding: 5rem 0;
  padding-top: calc(5rem + 76px);
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 1;
  pointer-events: none;
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

/* Service hero sections */
.service-hero,
.about-hero,
.contact-hero {
  padding-top: calc(3rem + 76px);
  min-height: 420px;
}

.service-hero::before,
.about-hero::before,
.contact-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 1;
  pointer-events: none;
  z-index: 1;
}

.service-hero .container,
.about-hero .container,
.contact-hero .container {
  position: relative;
  z-index: 2;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.08)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.5;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-section h1,
.hero-section .display-3,
.hero-section .display-4 {
  color: var(--text-light);
  font-weight: 700;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
  margin-bottom: 1.5rem;
}

.hero-section p,
.hero-section .lead {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

.service-hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
}

.hero-stat {
  background: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.hero-stat:hover {
  background: rgba(255, 255, 255, 0.25) !important;
  transform: translateY(-3px);
}

.hero-stat h3,
.hero-stat .display-6 {
  color: var(--text-light);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.hero-stat p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* ===== BUTTONS ===== */
.btn {
  border-radius: var(--border-radius);
  font-weight: 500;
  padding: 0.625rem 1.5rem;
  transition: var(--transition);
  border: none;
}

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

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

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: var(--text-light);
}

.btn-outline-light:hover {
  background: var(--text-light);
  color: var(--primary-color);
  border-color: var(--text-light);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1.1rem;
}

/* ===== CARDS ===== */
.card {
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: var(--transition);
  background: var(--lighter-bg);
}

.shadow-hover {
  box-shadow: var(--shadow-sm);
}

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

.card-img-wrapper {
  position: relative;
  height: 250px;
  overflow: hidden;
  background: var(--section-bg);
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.shadow-hover:hover .card-img-wrapper img {
  transform: scale(1.1);
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.4) 100%);
}

.card-body {
  padding: 2rem;
}

.card-body h2,
.card-body h3 {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 1rem;
}

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

/* ===== ICONS ===== */
.pillar-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--lighter-bg);
  color: var(--primary-color);
  margin: 0 auto 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--section-bg);
}

.pillar-icon i {
  font-size: 2rem;
  display: inline-block;
  line-height: 1;
}

.pillar-icon i::before {
  display: inline-block;
}

.service-icon {
  width: 70px;
  height: 70px;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--lighter-bg);
  color: var(--primary-color);
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--section-bg);
}

.service-icon i {
  font-size: 2rem;
}

.process-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
  color: var(--text-light);
  margin: 0 auto;
  box-shadow: var(--shadow);
  font-size: 2.5rem;
}

.advantage-icon {
  width: 60px;
  height: 60px;
  background: var(--lighter-bg);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--section-bg);
}

/* ===== SECTIONS ===== */
.bg-light {
  background: var(--section-bg) !important;
}

.py-6 {
  padding-top: 4rem !important;
  padding-bottom: 4rem !important;
}

@media (min-width: 768px) {
  .py-6 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
  }
}

section {
  position: relative;
}

/* ===== LISTS ===== */
.feature-list,
.features-list,
.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li,
.features-list li,
.service-list li {
  padding: 0.75rem 0;
  color: var(--text-secondary);
  display: flex;
  align-items: start;
  gap: 0.75rem;
}

.feature-list li i,
.features-list li i,
.service-list li i {
  color: var(--success-color);
  margin-top: 0.25rem;
  flex-shrink: 0;
}

/* ===== METRICS ===== */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.metric-item {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--lighter-bg);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

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

.metric-value,
.metric-item .display-4 {
  display: block;
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.metric-label,
.metric-item h3 {
  display: block;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.metric-item p {
  color: var(--text-secondary);
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* ===== ADVANTAGES ===== */
.advantage-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.advantage-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.advantage-content h3 {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.advantage-content p {
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* ===== TESTIMONIALS ===== */
.testimonial-card {
  transition: var(--transition);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary-color);
}

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

.testimonial-content {
  position: relative;
}

.testimonial-content p {
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.testimonial-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ===== PARTNERS ===== */
.partner-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.partner-logo-placeholder {
  background: var(--lighter-bg);
  height: 120px;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 2px solid var(--section-bg);
}

.partner-logo-placeholder:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.placeholder-text {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  padding: 1rem;
}

/* ===== PROCESS STEPS ===== */
.process-step {
  text-align: center;
  padding: 2rem 1rem;
}

.process-step h3 {
  color: var(--text-primary);
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.process-step p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== CERTIFICATIONS ===== */
.certification-item {
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  background: var(--lighter-bg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.certification-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.certification-item img {
  max-width: 100%;
  height: auto;
  margin-bottom: 1rem;
}

.certification-item h3,
.certification-item h6 {
  color: var(--text-primary);
  font-weight: 600;
}

/* ===== SERVICE HIGHLIGHTS ===== */
.service-highlights {
  background: var(--section-bg);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  margin-top: 1.5rem;
}

.service-highlights h4 {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  width: 3px;
  background: linear-gradient(180deg, var(--primary-light) 0%, var(--primary-color) 100%);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1.5px;
  border-radius: 2px;
}

.timeline-item {
  padding: 2rem 0;
  position: relative;
  width: 50%;
}

.timeline-item:nth-child(even) {
  margin-left: 50%;
}

.timeline-content {
  padding: 1.5rem;
  background: var(--lighter-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.timeline-content:hover {
  box-shadow: var(--shadow-lg);
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, #5AB9EA 0%, var(--primary-color) 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.08)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
}

.cta-section .container {
  position: relative;
  z-index: 2;
}

.cta-section h2 {
  color: var(--text-light);
  font-weight: 700;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
}

/* ===== TECH ICONS ===== */
.tech-icon {
  padding: 2rem 1rem;
  text-align: center;
  transition: var(--transition);
}

.tech-icon:hover {
  transform: translateY(-5px);
}

.tech-icon i {
  font-size: 3.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.tech-icon h4 {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1rem;
}

/* ===== STATS SECTION ===== */
.stats-item {
  text-align: center;
  padding: 2rem;
}

.stats-item .display-4 {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stats-item h3 {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.stats-item p {
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 991px) {
  .navbar-collapse {
    background: var(--section-bg);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-top: 1rem;
  }
}

@media (max-width: 768px) {
  .timeline::before {
    left: 30px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 70px;
  }

  .timeline-item:nth-child(even) {
    margin-left: 0;
    padding-left: 70px;
  }
  
  .hero-section {
    min-height: 400px;
    padding: 3rem 0;
  }
  
  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 576px) {
  .card-img-wrapper {
    height: 200px;
  }
  
  body {
    margin-bottom: 400px;
  }
  
  .footer {
    min-height: 400px;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
}

/* ===== ACCESSIBILITY ===== */
.btn:focus,
.form-control:focus,
.form-select:focus {
  outline: 3px solid var(--primary-light);
  outline-offset: 2px;
}

/* Privacy Policy Popover Styling */
.privacy-popover-content {
  max-height: 500px;
  overflow-y: auto;
  font-size: 0.875rem;
  line-height: 1.5;
}

.privacy-popover-content h5 {
  position: sticky;
  top: 0;
  background: white;
  padding-bottom: 0.5rem;
  z-index: 1;
}

.privacy-popover-content h6 {
  color: var(--primary-color);
  font-size: 0.9rem;
  font-weight: 600;
}

.privacy-popover-content ul {
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
}

.privacy-popover-content li {
  margin-bottom: 0.25rem;
}

/* ===== UTILITY CLASSES ===== */
.text-primary {
  color: var(--primary-color) !important;
}

.bg-primary {
  background: var(--primary-color) !important;
}

.border-primary {
  border-color: var(--primary-color) !important;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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