/* ============================================================
   MOBILE RESPONSIVE STYLES - AGPS
   ============================================================ */

/* Mobile Navigation */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex !important;
    z-index: 1001;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%);
    transition: all 0.4s ease;
    z-index: 1000;
  }

  .nav-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-menu li {
    width: 100%;
    text-align: center;
  }

  .nav-link {
    display: block;
    padding: 16px 24px;
    font-size: 18px;
    border-radius: 12px;
  }

  .nav-login-btn {
    margin: 16px 24px 0;
    width: calc(100% - 48px);
    padding: 16px;
    font-size: 16px;
  }

  .nav-container {
    padding: 12px 16px;
  }

  .nav-logo {
    font-size: 20px;
  }
}

/* Hero Section - Tablet & Mobile */
@media (max-width: 1024px) {
  .hero {
    padding: 100px 16px 60px;
    min-height: auto;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero-tagline {
    font-size: 18px;
  }

  .hero-desc {
    font-size: 15px;
    padding: 0 8px;
  }

  .hero-cta {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    padding: 20px 16px;
  }

  .stat-item {
    flex: 0 0 auto;
    min-width: 80px;
  }

  .stat-divider {
    display: none;
  }

  .stat-number {
    font-size: 24px;
  }

  .stat-label {
    font-size: 12px;
  }

  .hero-visual {
    order: -1;
  }

  .hero-phone {
    width: 240px;
    height: 480px;
  }

  .phone-screen {
    padding: 40px 12px 16px;
  }

  .app-header-bar {
    font-size: 14px;
  }

  .app-balance strong {
    font-size: 24px;
  }
}

/* Hero Section - Small Mobile */
@media (max-width: 480px) {
  .hero {
    padding: 90px 12px 40px;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero-badge {
    font-size: 11px;
    padding: 6px 12px;
  }

  .hero-tagline {
    font-size: 16px;
  }

  .hero-desc {
    font-size: 14px;
  }

  .hero-phone {
    width: 200px;
    height: 400px;
  }

  .hero-stats {
    padding: 16px 12px;
  }

  .stat-number {
    font-size: 20px;
  }
}

/* Section Headers - Mobile */
@media (max-width: 768px) {
  .section {
    padding: 60px 16px;
  }

  .section-header {
    margin-bottom: 40px;
    padding: 0 8px;
  }

  .section-header h2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .section-header p {
    font-size: 15px;
  }

  .section-badge {
    font-size: 11px;
    padding: 6px 12px;
  }
}

/* About Section - Mobile */
@media (max-width: 1024px) {
  .about-content {
    flex-direction: column;
    gap: 40px;
  }

  .about-text,
  .about-image {
    max-width: 100%;
  }

  .about-text h3 {
    font-size: 1.5rem;
    text-align: center;
  }

  .about-text > p {
    text-align: center;
  }

  .about-features {
    justify-content: center;
  }

  .about-image {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .about-image {
    grid-template-columns: 1fr;
  }

  .about-card {
    padding: 20px;
  }

  .about-card h4 {
    font-size: 16px;
  }

  .about-feature-item {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}

/* Features Grid - Mobile */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    padding: 24px 20px;
  }

  .feature-icon {
    font-size: 36px;
  }

  .feature-card h3 {
    font-size: 16px;
  }

  .feature-card p {
    font-size: 14px;
  }
}

/* Services Grid - Mobile */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: 24px 20px;
  }

  .service-icon {
    font-size: 36px;
  }

  .service-card h3 {
    font-size: 16px;
  }

  .service-card p {
    font-size: 14px;
  }
}

/* Steps/How it Works - Mobile */
@media (max-width: 768px) {
  .steps-container {
    flex-direction: column;
    gap: 24px;
  }

  .step {
    flex-direction: row;
    text-align: left;
    gap: 20px;
    padding: 20px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  }

  .step-icon {
    width: 60px;
    height: 60px;
    font-size: 28px;
    flex-shrink: 0;
  }

  .step-content {
    flex: 1;
  }

  .step-number {
    position: absolute;
    top: -8px;
    left: -8px;
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  .step-connector {
    display: none;
  }
}

/* Contact Section - Mobile */
@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-info {
    text-align: center;
  }

  .contact-item {
    justify-content: center;
  }

  .contact-icon {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .contact-item {
    flex-direction: column;
    gap: 12px;
  }

  .contact-form {
    padding: 24px 16px;
  }

  .form-row {
    flex-direction: column;
    gap: 16px;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 14px 16px;
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

/* Modal - Mobile */
@media (max-width: 480px) {
  .modal-content {
    margin: 16px;
    max-height: calc(100vh - 32px);
    border-radius: 16px;
  }

  .modal-header {
    padding: 16px 20px;
  }

  .modal-header h2 {
    font-size: 18px;
  }

  .modal-form {
    padding: 20px;
  }

  .form-group input {
    padding: 14px 16px;
    font-size: 16px;
  }

  .modal-form .btn {
    padding: 16px;
    font-size: 16px;
  }
}

/* Footer - Mobile */
@media (max-width: 768px) {
  .footer {
    padding: 48px 16px 24px;
  }

  .footer-content {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  .footer-brand {
    max-width: 100%;
  }

  .footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    width: 100%;
  }

  .footer-links-column {
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer-links {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Buttons - Mobile */
@media (max-width: 480px) {
  .btn {
    padding: 14px 24px;
    font-size: 15px;
  }

  .btn-lg {
    padding: 16px 28px;
    font-size: 16px;
  }
}

/* Container - Mobile */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }
}

/* Typography - Mobile */
@media (max-width: 768px) {
  h1 {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }

  h2 {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  h3 {
    font-size: clamp(1.125rem, 4vw, 1.5rem);
  }
}

/* Cards Hover - Disable on touch devices */
@media (hover: none) {
  .feature-card:hover,
  .service-card:hover,
  .about-card:hover {
    transform: none;
  }
}

/* Smooth scrolling for iOS */
@supports (-webkit-touch-callout: none) {
  html {
    scroll-behavior: auto;
  }
}

/* Safe area for iPhone notch */
@supports (padding: max(0px)) {
  .navbar {
    padding-top: max(12px, env(safe-area-inset-top));
  }

  .nav-menu.active {
    padding-top: max(80px, calc(60px + env(safe-area-inset-top)));
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }
}

/* Print Styles */
@media print {
  .navbar,
  .hero-visual,
  .nav-toggle,
  .modal {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding: 24px;
  }

  .section {
    padding: 24px;
  }
}
