/* ============ CSS RESET & GLOBAL STYLES ============ */
:root {
  --primary: #3a86ff;
  --primary-dark: #2667cc;
  --secondary: #8338ec;
  --dark: #1a1d29;
  --dark-light: #2d3347;
  --light: #f8fafc;
  --light-alt: #f0f7ff;
  --gray: #64748b;
  --gray-light: #e2e8f0;
  --success: #10b981;
  --warning: #f59e0b;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 25px 50px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--dark);
  background-color: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 100px 0;
}

.bg-light {
  background-color: var(--light-alt) !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 16px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  outline: none;
  gap: 8px;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(58, 134, 255, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background-color: rgba(58, 134, 255, 0.1);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 40px;
  font-size: 18px;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}

.section-header.center {
  text-align: center;
}

.section-subtitle {
  display: inline-block;
  color: var(--primary);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  position: relative;
}

.section-subtitle::after {
  content: "";
  position: absolute;
  width: 40px;
  height: 2px;
  background-color: var(--primary);
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
}

.section-title {
  font-size: 42px;
  margin-bottom: 20px;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

.section-description {
  color: var(--gray);
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto;
}

.highlight {
  color: var(--primary);
  position: relative;
}

.highlight::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 6px;
  background-color: rgba(58, 134, 255, 0.2);
  bottom: 2px;
  left: 0;
  z-index: -1;
}

/* ============ HEADER STYLES ============ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  transition: var(--transition);
  padding: 20px 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.header.sticky {
  padding: 12px 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  color: var(--dark);
}

.logo i {
  color: var(--primary);
  font-size: 28px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-link {
  font-weight: 500;
  color: var(--dark);
  transition: var(--transition);
  position: relative;
  padding: 5px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  bottom: 0;
  left: 0;
}

.nav-buttons {
  display: flex;
  align-items: center;
  gap: 15px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--dark);
  cursor: pointer;
}

/* ============ HERO SECTION ============ */
.hero {
  padding: 100px 0 100px;
  background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(58, 134, 255, 0.1) 0%,
    rgba(58, 134, 255, 0) 70%
  );
  top: -250px;
  right: -250px;
  z-index: 0;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.hero-text {
  flex: 1;
}

.hero-title {
  font-size: 56px;
  margin-bottom: 24px;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -1px;
}

.hero-description {
  font-size: 18px;
  color: var(--gray);
  margin-bottom: 32px;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 40px;
  text-align: center;
}

.stat h3 {
  font-size: 36px;
  color: var(--primary);
  margin-bottom: 4px;
}

.stat p {
  color: var(--gray);
  font-size: 14px;
  font-weight: 500;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
}

.phone-mockup {
  position: relative;
  width: 300px;
  height: 600px;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
  transition: var(--transition);
  border: 12px solid #1a1d29;
}

.phone-mockup:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
  box-shadow: var(--shadow-hover);
}

.phone-mockup img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.notification {
  position: absolute;
  bottom: 30px;
  left: 20px;
  right: 20px;
  background: white;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  animation: slideUp 0.5s ease-out 0.5s both;
}

.notification i {
  color: var(--success);
  font-size: 20px;
}

.notification span {
  font-size: 14px;
  font-weight: 500;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============ SERVICES SECTION ============ */
.services {
  padding: 50px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  background: white;
  border-radius: var(--radius);
  padding: 40px 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--gray-light);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background-color: var(--primary);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}

.service-card:hover::before {
  width: 100%;
  opacity: 0.05;
}

.service-icon {
  position: relative;
  width: 70px;
  height: 70px;
  background-color: rgba(58, 134, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.service-icon i {
  font-size: 28px;
  color: var(--primary);
  z-index: 1;
}

.service-number {
  position: absolute;
  top: -10px;
  right: -10px;
  background-color: var(--primary);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.service-card h3 {
  font-size: 22px;
  margin-bottom: 16px;
  color: var(--dark);
}

.service-card p {
  color: var(--gray);
  margin-bottom: 24px;
  font-size: 16px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
  font-size: 16px;
  transition: var(--transition);
  position: relative;
  z-index: 10;
}

.service-link:hover {
  gap: 12px;
}

/* ============ ABOUT SECTION ============ */
.about {
  padding: 50px 0;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 60px;
}

.about-text {
  flex: 1;
}

.about-description {
  color: var(--gray);
  font-size: 17px;
  margin-bottom: 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin: 40px 0;
}

.stat-box {
  display: flex;
  align-items: center;
  text-align: center;
  gap: 16px;
  background: white;
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.stat-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.stat-box i {
  font-size: 36px;
  color: var(--primary);
}

.stat-box h3 {
  font-size: 28px;
  color: var(--dark);
  margin-bottom: 4px;
}

.stat-box p {
  color: var(--gray);
  font-size: 14px;
  font-weight: 500;
}

.about-image {
  flex: 1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: var(--transition);
}

.about-image:hover img {
  transform: scale(1.05);
}

/* ============ BECOME A WORKER SECTION ============ */
.become-worker {
  padding: 50px 0;
}

.worker-content {
  display: flex;
  align-items: center;
  gap: 60px;
}

.worker-image {
  flex: 1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.worker-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: var(--transition);
}

.worker-image:hover img {
  transform: scale(1.05);
}

.worker-text {
  flex: 1;
}

.worker-text h3 {
  font-size: 32px;
  margin-bottom: 30px;
  color: var(--dark);
}

.worker-benefits {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-bottom: 40px;
}

.benefit {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.benefit i {
  font-size: 24px;
  color: var(--primary);
  margin-top: 5px;
}

.benefit h4 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--dark);
}

.benefit p {
  color: var(--gray);
  font-size: 15px;
  line-height: 1.6;
}

.worker-requirements {
  margin-bottom: 30px;
}

.worker-requirements h4 {
  font-size: 20px;
  margin-bottom: 15px;
  color: var(--dark);
}

.worker-requirements ul {
  list-style: none;
  padding-left: 0;
}

.worker-requirements li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--gray);
  font-size: 16px;
}

.worker-requirements li i {
  color: var(--success);
  font-size: 14px;
}

/* ============ SECURITY SECTION ============ */
.security {
  padding: 50px 0;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.security-card {
  text-align: center;
  padding: 40px 30px;
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid transparent;
}

.security-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.security-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background-color: rgba(58, 134, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.security-icon i {
  font-size: 32px;
  color: var(--primary);
}

.security-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--dark);
}

.security-card p {
  color: var(--gray);
  font-size: 15px;
  line-height: 1.6;
}

/* ============ APP SECTION ============ */
.app-section {
  padding: 50px 0;
}

.app-content {
  display: flex;
  align-items: center;
  gap: 60px;
}

.app-text {
  flex: 1;
}

.app-description {
  color: var(--gray);
  font-size: 18px;
  margin-bottom: 32px;
}

.app-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feature i {
  color: var(--primary);
  font-size: 20px;
}

.feature span {
  font-size: 16px;
  font-weight: 500;
}

.app-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background-color: var(--dark);
  color: white;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  min-width: 180px;
}

.store-btn:hover {
  background-color: black;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.store-btn i {
  font-size: 28px;
}

.store-btn div {
  display: flex;
  flex-direction: column;
}

.store-btn span {
  font-size: 12px;
  opacity: 0.8;
}

.store-btn strong {
  font-size: 16px;
}

.app-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.phone-screen {
  width: 300px;
  max-width: 100%;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  position: relative;
}

.phone-screen img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.phone-screen:hover img {
  transform: scale(1.05);
}

/* ============ TESTIMONIALS SECTION ============ */
.testimonials {
  padding: 50px 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background: white;
  border-radius: var(--radius);
  padding: 40px 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--gray-light);
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.testimonial-rating {
  color: var(--warning);
  font-size: 18px;
  margin-bottom: 20px;
}

.testimonial-text {
  color: var(--gray);
  font-size: 16px;
  font-style: italic;
  margin-bottom: 24px;
  line-height: 1.7;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-author h4 {
  font-size: 18px;
  margin-bottom: 4px;
}

.testimonial-author span {
  color: var(--gray);
  font-size: 14px;
}

/* ============ RESPONSIVE DESIGN ============ */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 48px;
  }

  .section-title {
    font-size: 36px;
  }

  .hero-content,
  .about-content,
  .app-content,
  .worker-content {
    flex-direction: column;
    gap: 40px;
  }

  .hero-stats {
    justify-content: center;
  }

  .phone-mockup {
    transform: none;
  }

  .phone-mockup:hover {
    transform: translateY(-10px);
  }

  .nav-menu {
    gap: 25px;
  }
}

/* Tablet (max-width: 768px) */
@media (max-width: 768px) {
  .section {
    padding: 80px 0;
  }

  .hero {
    padding: 140px 0 60px;
  }

  .hero-title {
    font-size: 40px;
  }

  .section-title {
    font-size: 32px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 30px;
  }

  .services-grid,
  .security-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr); /* ← Ensure 2 columns on mobile */
    gap: 15px; /* ← Reduce gap for mobile */
  }

  .stat-box {
    padding: 15px; /* ← Reduce padding for mobile */
  }

  .app-features {
    grid-template-columns: 1fr;
  }

  .app-buttons {
    flex-direction: column;
  }

  .store-btn {
    width: 100%;
    justify-content: center;
  }

  /* Mobile Menu */
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 80px;
    right: -100%;
    flex-direction: column;
    background: white;
    width: 100%;
    max-width: 300px;
    height: calc(100vh - 80px);
    padding: 40px 20px;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    gap: 30px;
    align-items: flex-start;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-buttons {
    flex-direction: column;
    width: 100%;
    gap: 15px;
    margin-top: 20px;
  }

  .header.sticky {
    padding: 15px 0;
  }

  .header.sticky .nav-menu {
    top: 70px;
    height: calc(100vh - 70px);
  }
}

/* Mobile (max-width: 480px) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 32px;
  }

  .section-title {
    font-size: 28px;
  }

  .hero-description,
  .section-description {
    font-size: 16px;
  }

  .btn,
  .btn-lg {
    padding: 12px 24px;
    font-size: 15px;
  }

  .service-card,
  .security-card,
  .testimonial-card {
    padding: 30px 20px;
  }

  .phone-mockup,
  .phone-screen {
    width: 250px;
    height: 500px;
  }

  .notification {
    left: 10px;
    right: 10px;
  }

  .worker-text h3 {
    font-size: 26px;
  }
}
