/* ========================================
   SOKO LOCAL - Main Styles & Bootstrap Overrides
   ======================================== */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Inter:wght@300;400;500;600&family=DM+Sans:ital,wght@0,300;0,400;1,300;1,400&display=swap');

/* ========================================
   CSS Variables - Design System
   ======================================== */
:root {
  /* Color Palette */
  --primary-navy: #053A66;
  --accent-orange: #E39009;
  --neutral-gray: #CDCFCD;
  --text-dark: #1E1E1E;
  --text-light: #F8F9FA;
  --secondary-blue: #0B4A82;
  
  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-accent: 'DM Sans', sans-serif;
  
  /* Spacing */
  --section-padding: 5rem 0;
  --container-max: 1200px;
  
  /* Shadows */
  --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.15);
  
  /* Transitions */
  --transition-base: all 0.3s ease;
}

/* ========================================
   Global Styles
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: #ffffff;
  overflow-x: hidden;
  padding-top: 70px; /* Add padding for fixed navbar */
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-navy);
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 1.75rem);
}

p {
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.125rem;
  font-weight: 300;
}

.accent-text {
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--accent-orange);
}

/* ========================================
   Bootstrap Button Overrides
   ======================================== */
.btn {
  border-radius: 8px;
  padding: 0.75rem 2rem;
  font-weight: 600;
  text-transform: none;
  transition: var(--transition-base);
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background-color: var(--primary-navy);
  color: var(--text-light);
}

.btn-primary:hover {
  background-color: var(--secondary-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(5, 58, 102, 0.3);
}

.btn-accent {
  background-color: var(--accent-orange);
  color: #ffffff;
}

.btn-accent:hover {
  background-color: #d18008;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(227, 144, 9, 0.4);
  color: #ffffff;
}

.btn-outline-primary {
  border: 2px solid var(--primary-navy);
  color: var(--primary-navy);
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-outline-primary:hover {
  background-color: var(--primary-navy);
  color: var(--text-light);
  border-color: var(--primary-navy);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(5, 58, 102, 0.3);
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.9);
  color: var(--text-light);
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.95);
  color: var(--primary-navy);
  border-color: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

/* ========================================
   Navbar Styles
   ======================================== */
.navbar {
  padding: 1rem 0;
  transition: var(--transition-base);
  background-color: rgba(240, 240, 240, 0.95);
  backdrop-filter: blur(10px);
}

.navbar.scrolled {
  background-color: rgba(240, 240, 240, 0.98) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-navy) !important;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.navbar-brand span {
  color: var(--accent-orange);
}

.navbar-nav .nav-link {
  color: var(--primary-navy) !important;
  font-weight: 500;
  margin: 0 0.5rem;
  padding: 0.5rem 1rem;
  transition: var(--transition-base);
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--accent-orange) !important;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--accent-orange);
  transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 80%;
}

.navbar-toggler {
  border-color: var(--text-light);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(248, 249, 250, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
  min-height: calc(100vh - 70px); /* Subtract body padding */
  position: relative;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--secondary-blue) 100%);
  color: var(--text-light);
  overflow: hidden;
  margin-top: -70px; /* Offset body padding */
  padding-top: 140px; /* Account for navbar + body padding */
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23E39009' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.3;
}

#particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-section h1 {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease;
}

.hero-section .lead {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  animation: fadeInUp 1s ease 0.2s both;
}

.hero-buttons {
  animation: fadeInUp 1s ease 0.4s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   Section Styles
   ======================================== */
.section {
  padding: var(--section-padding);
}

.section-light {
  background-color: #ffffff;
}

.section-gray {
  background-color: #f8f9fa;
}

.section-dark {
  background-color: var(--primary-navy);
  color: var(--text-light);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--text-light);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--accent-orange);
  margin: 1rem auto 0;
  border-radius: 2px;
}

.section-subtitle {
  color: var(--accent-orange);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

/* ========================================
   Cards
   ======================================== */
.card {
  border: none;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  transition: var(--transition-base);
  height: auto;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.card-icon {
  font-size: 3rem;
  color: var(--accent-orange);
  margin-bottom: 1rem;
}

.card-accent {
  border-top: 4px solid var(--accent-orange);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-navy);
  margin-bottom: 1rem;
}

.card-text {
  color: #666;
  line-height: 1.7;
}

.card-body {
  padding: 2rem;
}

/* ========================================
   Statistics / Counters
   ======================================== */
.stat-item {
  text-align: center;
  padding: 2rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-orange);
  font-family: var(--font-heading);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: var(--text-light);
  opacity: 0.9;
}

/* ========================================
   Forms
   ======================================== */
.form-control,
.form-select {
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: var(--transition-base);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 0.2rem rgba(227, 144, 9, 0.25);
}

.form-label {
  font-weight: 600;
  color: var(--primary-navy);
  margin-bottom: 0.5rem;
}

/* ========================================
   Testimonials & Ratings
   ======================================== */
.testimonial-card {
  background: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  position: relative;
  margin-bottom: 2rem;
}

.testimonial-quote {
  font-size: 1.125rem;
  font-style: italic;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--neutral-gray);
}

.testimonial-info h5 {
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.testimonial-info .company {
  font-size: 0.875rem;
  color: #666;
}

.rating-stars {
  color: var(--accent-orange);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.rating-stars i {
  margin-right: 0.25rem;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background-color: var(--primary-navy);
  color: var(--text-light);
  padding: 3rem 0 1rem;
  position: relative;
  z-index: 10;
  clear: both;
}

.footer h5 {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

.footer a {
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition-base);
  opacity: 0.8;
}

.footer a:hover {
  color: var(--accent-orange);
  opacity: 1;
}

.footer ul {
  list-style: none;
  padding: 0;
}

.footer ul li {
  margin-bottom: 0.75rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
  padding-top: 1.5rem;
  text-align: center;
  opacity: 0.7;
  font-size: 0.875rem;
}

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  margin-right: 0.5rem;
  transition: var(--transition-base);
}

.social-links a:hover {
  background-color: var(--accent-orange);
  transform: translateY(-3px);
}

/* ========================================
   Utility Classes
   ======================================== */
.text-orange {
  color: var(--accent-orange) !important;
}

.bg-navy {
  background-color: var(--primary-navy) !important;
}

.bg-orange {
  background-color: var(--accent-orange) !important;
}

.border-orange {
  border-color: var(--accent-orange) !important;
}

/* ========================================
   Responsive Adjustments
   ======================================== */

/* Large tablets and small desktops */
@media (max-width: 992px) {
  body {
    padding-top: 70px;
  }
  
  .hero-section {
    padding-top: 120px;
    margin-top: -70px;
  }
  
  .page-header {
    padding-top: calc(5rem + 70px);
    margin-top: -70px;
  }
}

/* Tablets */
@media (max-width: 768px) {
  body {
    padding-top: 70px;
  }
  
  .hero-section {
    min-height: calc(80vh - 70px);
    padding: 100px 2rem 4rem;
    margin-top: -70px;
  }
  
  .page-header {
    padding: 4rem 0 2.5rem;
    padding-top: calc(4rem + 70px);
    margin-top: -70px;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .navbar-nav {
    text-align: center;
    padding: 1rem 0;
    background-color: rgba(240, 240, 240, 0.98);
  }
  
  .navbar-nav .nav-link::after {
    display: none;
  }
  
  .hero-section h1 {
    font-size: 2.25rem;
  }
  
  .hero-section .lead {
    font-size: 1.1rem;
  }
}

/* Mobile phones */
@media (max-width: 576px) {
  body {
    padding-top: 60px;
  }
  
  .hero-section {
    padding: 90px 1rem 3rem;
    margin-top: -60px;
  }
  
  .page-header {
    padding: 3rem 0 2rem;
    padding-top: calc(3rem + 60px);
    margin-top: -60px;
  }
  
  .page-header h1 {
    font-size: 2rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .btn {
    padding: 0.625rem 1.5rem;
  }
  
  .btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .hero-section h1 {
    font-size: 1.75rem;
  }
  
  .hero-section .lead {
    font-size: 1rem;
  }
  
  .display-3 {
    font-size: 2.5rem;
  }
  
  .display-4 {
    font-size: 2rem;
  }
  
  .navbar {
    padding: 0.75rem 0;
  }
}
