/* ========== Reset & Base Styles ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f7fa;
  color: #111;
  line-height: 1.6;
}

/* ========== Full Width Container System ========== */
.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== Improved Header - Full Width Responsive ========== */
header {
  background: #ffffff;
  padding: 16px 0;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 10;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  width: 100%;
  margin: 0;
  box-sizing: border-box;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 20px;
}

header.header-hidden {
  transform: translateY(-100%);
  box-shadow: none;
}

/* ========== Navigation ========== */
nav {
  display: flex;
  align-items: center;
}

nav a {
  margin-right: 12px;
  text-decoration: none;
  color: #555;
  font-weight: 500;
  transition: color 0.2s ease;
}

nav a:hover,
nav a:focus {
  color: #007bff;
}

/* ========== Typography ========== */
h1, h2, h3, h4 {
  margin: 0 0 12px 0;
}

h1 {
  font-size: clamp(2rem, 5vw, 2.5em);
  margin-bottom: 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  color: #333;
  margin-bottom: 24px;
  font-size: clamp(1.5rem, 4vw, 1.8em);
}

/* ========== Hero Section ========== */
.hero {
  text-align: center;
  padding: 60px 20px;
  background: #f8f9fa;
  border-radius: 20px;
  margin-bottom: 40px;
}

.hero h1 {
  font-size: 3em;
  color: #2c3e50;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2em;
  color: #666;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ========== Features Grid (About Page) ========== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.feature-card {
  background: white;
  padding: 30px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 4em;
  color: #667eea;
  margin-bottom: 20px;
}

/* ========== Stats Section ========== */
.stats {
  background: #667eea;
  color: white;
  padding: 40px 20px;
  text-align: center;
  border-radius: 20px;
  margin: 40px 0;
}

.stat {
  display: inline-block;
  margin: 0 30px;
}

.stat-number {
  font-size: 3em;
  font-weight: bold;
  display: block;
}

/* ========== Buttons ========== */
.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  font-weight: 500;
  transition: all 0.2s ease;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

.btn.primary {
  background: #007bff;
  color: #ffffff;
}

.btn.primary:hover {
  background: #0056b3;
  transform: translateY(-1px);
}

.btn.light {
  background: #6c757d;
  color: #ffffff;
}

.btn.light:hover {
  background: #545b62;
  transform: translateY(-1px);
}

/* ========== Card Grid ========== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
  justify-items: center;
  align-items: start;
}

/* ========== Cards ========== */
.card {
  background: #ffffff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
  width: 100%;
  max-width: 340px;
  min-height: 180px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.quick-card {
  background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
  border-left: 4px solid #28a745;
}

.card strong {
  font-size: 1.1em;
  margin-bottom: 8px;
  display: block;
}

.card p {
  margin: 8px 0 16px 0;
  color: #555;
  flex-grow: 1;
}

.quick-card p {
  color: #28a745;
  font-weight: 500;
}

.card .btn {
  margin-top: auto;
}

/* ========== About Page Sections ========== */
.about-section {
  margin-top: 60px;
  text-align: center;
  padding: 40px 20px;
  background: #f8f9fa;
  border-radius: 16px;
}

.about-section p {
  max-width: 600px;
  margin: 0 auto 24px;
  color: #666;
  font-size: 1.1em;
}

.about-icons {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.about-icons > div {
  text-align: center;
}

.about-icons i {
  font-size: 3em;
  display: block;
  margin-bottom: 8px;
}

.about-icons i.fa-brain {
  color: #667eea;
}

.about-icons i.fa-bolt {
  color: #28a745;
}

.about-icons i.fa-mobile-alt {
  color: #007bff;
}

.about-icons i.fa-check-circle {
  color: #28a745;
  font-size: 2.5em;
}

.about-icons i.fa-lock {
  color: #dc3545;
  font-size: 2.5em;
}

/* ========== Why Choose Section ========== */
.why-choose {
  text-align: center;
  padding: 40px 0;
}

.why-choose h2 {
  color: #2c3e50;
  margin-bottom: 20px;
}

.why-choose-grid {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
}

.why-choose-item {
  flex: 1;
  min-width: 250px;
}

/* ========== CTA Section ========== */
.cta-section {
  background: #f8f9fa;
  padding: 40px 20px;
  border-radius: 20px;
  text-align: center;
}

.cta-section p {
  font-size: 1.2em;
  color: #666;
  margin-bottom: 30px;
}

.cta-section a {
  background: #667eea;
  color: white;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 500;
  font-size: 1.1em;
  display: inline-block;
  transition: all 0.2s ease;
}

.cta-section a:hover {
  background: #5568d3;
  transform: translateY(-2px);
}

/* ========== Footer - Full Width Responsive ========== */
footer {
  text-align: center;
  font-size: 14px;
  padding: 20px 20px 30px;
  color: #666666;
  background: #ffffff;
  border-top: 1px solid #e9ecef;
  width: 100%;
  margin: 40px 0 0 0;
  box-sizing: border-box;
}

footer .container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

footer a {
  text-decoration: none;
  color: #555;
  transition: color 0.2s ease;
}

footer a:hover {
  color: #007bff;
}

/* ========== Responsive Design ========== */
/* Tablet and below */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  
  header {
    padding: 12px 0;
  }
  
  header .container {
    padding: 0 16px;
    flex-wrap: wrap;
    gap: 12px;
  }
  
  nav a {
    margin-right: 8px;
    font-size: 14px;
  }
  
  .hero {
    padding: 40px 16px;
    margin: 20px 0;
  }
  
  .hero h1 {
    font-size: 2em;
  }
  
  .grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .card {
    max-width: 100%;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .stats .stat {
    display: block;
    margin: 20px 0;
  }
  
  .why-choose-grid {
    flex-direction: column;
    gap: 24px;
  }
  
  footer {
    padding: 20px 16px 24px;
  }
  
  footer .container {
    padding: 0 16px;
    flex-direction: column;
    text-align: center;
  }
}

/* Mobile - Under 480px */
@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }
  
  header {
    padding: 10px 0;
  }
  
  header .container {
    padding: 0 12px;
  }
  
  nav {
    flex-wrap: wrap;
  }
  
  nav a {
    margin-right: 6px;
    font-size: 13px;
  }
  
  .hero {
    padding: 30px 12px;
    margin: 16px 0;
  }
  
  .hero h1 {
    font-size: 1.8em;
  }
  
  h1 {
    font-size: 1.8em;
  }
  
  h2 {
    font-size: 1.5em;
  }
  
  .grid {
    gap: 12px;
  }
  
  .card {
    padding: 20px;
    min-height: 160px;
  }
  
  .feature-card {
    padding: 20px;
  }
  
  .feature-icon {
    font-size: 3em;
  }
  
  .stat-number {
    font-size: 2em;
  }
  
  .stat {
    margin: 15px 0;
  }
  
  footer {
    padding: 16px 12px 20px;
  }
  
  footer .container {
    padding: 0 12px;
  }
  
  .btn {
    padding: 12px 20px;
    font-size: 15px;
  }
  
  .cta-section a {
    padding: 12px 30px;
    font-size: 1em;
  }
}

/* Large Desktop */
@media (min-width: 1400px) {
  .container {
    padding: 0 40px;
  }
  
  header .container,
  footer .container {
    padding: 0 40px;
  }
}

/* ========== Accessibility & Smooth Interactions ========== */
:focus-visible {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

html {
  scroll-behavior: smooth;
}

/* ========== Print Styles ========== */
@media print {
  header, footer {
    display: none;
  }
  
  .container {
    padding: 0;
  }
}
